/* =========================================================
   NextIce Design System
   Concept: "Cut Ice" — precision, clarity, cold engineering.
   A single recurring signature motif — a clipped corner,
   like a facet cut into ice — appears on cards, buttons,
   images and the nav mark instead of rounded corners.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Color */
  --navy-950: #050b14;
  --navy-900: #0a1420;
  --navy-800: #0f1e2e;
  --navy-700: #16293c;
  --ice-50:  #f5fafd;
  --ice-100: #e8f4fa;
  --frost-200: #c9e4f0;
  --cyan-400: #35c9e1;
  --cyan-300: #7adcee;
  --white: #ffffff;
  --slate-600: #4c5c6b;
  --slate-500: #6b7c8c;
  --line: rgba(53, 201, 225, 0.22);
  --line-dark: rgba(255, 255, 255, 0.10);

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --cut: 16px;            /* signature corner-cut size */
  --cut-sm: 9px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-950);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--slate-600); max-width: 62ch; }
ul { padding-left: 1.1em; color: var(--slate-600); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Signature cut-corner shape ---------- */
.cut,
.btn,
.card,
.cut-img,
.ad-slot,
.pricing-card,
.field,
.tag {
  clip-path: polygon(
    var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)
  );
}

/* ---------- Skip link / focus ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy-950);
  color: var(--white); padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cyan-400); outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 11, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  color: var(--white); display: flex; align-items: center; gap: 8px;
}
.logo .dot { width: 8px; height: 8px; background: var(--cyan-400);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.logo em { font-style: normal; color: var(--cyan-400); }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  color: var(--frost-200); font-size: 0.95rem; font-weight: 500;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); border-color: var(--cyan-400); }

.nav-cta {
  background: var(--cyan-400); color: var(--navy-950) !important; font-weight: 600;
  padding: 10px 20px; border: none; font-size: 0.92rem;
}
.nav-cta:hover { background: var(--cyan-300); border-color: transparent !important; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-dark); color: var(--white);
  width: 42px; height: 42px; font-size: 1.2rem; cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; background: var(--navy-950);
    flex-direction: column; align-items: flex-start; gap: 0; border-bottom: 1px solid var(--line-dark);
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 480px; }
  .nav-links a { width: 100%; padding: 16px 24px; border-bottom: 1px solid var(--line-dark); }
  .nav-links .nav-cta { margin: 16px 24px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 600;
  font-size: 0.95rem; padding: 14px 28px; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--cyan-400); color: var(--navy-950); }
.btn-primary:hover { background: var(--cyan-300); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--navy-900); }
.btn-ghost:hover { border-color: var(--cyan-400); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,0.3); color: var(--white); }
.btn-ghost-light:hover { border-color: var(--cyan-400); }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy-950);
  background-image: radial-gradient(ellipse at 80% -10%, rgba(53,201,225,0.20), transparent 55%);
  color: var(--white); padding: 96px 0 80px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -6%; top: 10%; width: 46%; aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(53,201,225,0.16), rgba(53,201,225,0));
  clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
  pointer-events: none;
}
.eyebrow {
  font-size: 0.82rem; color: var(--cyan-300); font-weight: 600; margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--cyan-400); }
.hero h1 { font-size: clamp(2.3rem, 4.2vw, 3.6rem); max-width: 16ch; color: var(--white); }
.hero .lead { color: var(--frost-200); font-size: 1.1rem; max-width: 56ch; }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 64px; flex-wrap: wrap; }
.hero-stats .num { font-family: var(--font-display); font-size: 1.9rem; color: var(--cyan-300); font-weight: 700; }
.hero-stats .label { font-size: 0.85rem; color: var(--slate-500); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-light { background: var(--white); }
.section-tint { background: var(--ice-50); }
.section-dark { background: var(--navy-950); color: var(--white); }
.section-dark p { color: var(--frost-200); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head .eyebrow { color: var(--slate-500); }
.section-dark .section-head .eyebrow { color: var(--cyan-300); }
.section-head .eyebrow::before { background: var(--slate-500); }
.section-dark .section-head .eyebrow::before { background: var(--cyan-400); }

/* ---------- Grids & Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--frost-200); padding: 32px;
}
.card .icon {
  width: 44px; height: 44px; background: var(--navy-950); color: var(--cyan-300);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  font-family: var(--font-display); font-weight: 700;
}
.card h3 { font-size: 1.15rem; }
.card p { font-size: 0.95rem; margin-bottom: 0; }
.card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  font-size: 0.75rem; background: var(--ice-100); color: var(--navy-800);
  padding: 5px 12px; border: 1px solid var(--frost-200);
}

.card-dark { background: var(--navy-900); border: 1px solid var(--line-dark); }
.card-dark h3 { color: var(--white); }
.card-dark p { color: var(--frost-200); }

/* ---------- Process / numbered steps ---------- */
.steps { border-top: 1px solid var(--frost-200); }
.step {
  display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 32px 0;
  border-bottom: 1px solid var(--frost-200);
}
.step .n { font-family: var(--font-display); font-size: 1.6rem; color: var(--frost-200); font-weight: 700; }
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { margin: 0; font-size: 0.95rem; }

/* ---------- Pricing ---------- */
.pricing-card {
  background: var(--white); border: 1px solid var(--frost-200); padding: 36px 32px; position: relative;
  display: flex; flex-direction: column;
}
.pricing-card.featured { border-color: var(--cyan-400); box-shadow: 0 0 0 1px var(--cyan-400); }
.pricing-card .badge {
  position: absolute; top: -13px; right: 28px; background: var(--cyan-400); color: var(--navy-950);
  font-size: 0.72rem; font-weight: 700; padding: 5px 12px;
}
.pricing-card .price { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; margin: 10px 0 6px; }
.pricing-card .price span { font-size: 0.95rem; font-weight: 500; color: var(--slate-500); }
.pricing-card ul { list-style: none; padding: 0; margin: 24px 0 28px; }
.pricing-card li { padding: 8px 0; border-top: 1px solid var(--ice-100); font-size: 0.92rem; color: var(--slate-600); }
.pricing-card li:first-child { border-top: none; }
.pricing-note { font-size: 0.85rem; color: var(--slate-500); margin-top: 24px; }

/* ---------- Testimonial / placeholder blocks ---------- */
.placeholder-block {
  border: 1px dashed var(--frost-200); background: var(--ice-50); padding: 40px;
  text-align: center; color: var(--slate-500); font-size: 0.9rem;
}
.placeholder-block strong { display: block; color: var(--navy-800); margin-bottom: 6px; font-family: var(--font-display); }

/* ---------- Ad slots (AdSense-ready) ---------- */
.ad-slot {
  background: var(--ice-50); border: 1px dashed var(--frost-200);
  display: flex; align-items: center; justify-content: center;
  color: var(--slate-500); font-size: 0.78rem; letter-spacing: 0.02em;
  min-height: 100px; margin: 48px auto; max-width: var(--max);
}
.ad-slot.ad-leaderboard { min-height: 90px; }
.ad-slot.ad-rectangle { min-height: 250px; max-width: 336px; }
.ad-slot.ad-inline { min-height: 100px; margin: 40px 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--navy-950); color: var(--white); padding: 72px 0; text-align: center;
  background-image: radial-gradient(ellipse at 50% 0%, rgba(53,201,225,0.18), transparent 60%);
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: var(--frost-200); margin: 0 auto 32px; }
.cta-banner .hero-actions { justify-content: center; }
.trust-row { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 40px; font-size: 0.85rem; color: var(--slate-500); }

/* ---------- Forms ---------- */
.field {
  width: 100%; border: 1px solid var(--frost-200); padding: 13px 16px; font-family: var(--font-body);
  font-size: 0.95rem; background: var(--white); color: var(--navy-900);
}
.field:focus { border-color: var(--cyan-400); }
label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--navy-800); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.82rem; color: var(--slate-500); padding: 18px 0; border-bottom: 1px solid var(--frost-200); }
.breadcrumb a { color: var(--slate-500); }
.breadcrumb a:hover { color: var(--navy-900); }

/* ---------- Related services ---------- */
.related-links { display: flex; flex-wrap: wrap; gap: 12px; }
.related-links a {
  border: 1px solid var(--frost-200); padding: 10px 18px; font-size: 0.88rem; font-weight: 500;
}
.related-links a:hover { border-color: var(--cyan-400); color: var(--cyan-400); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--frost-200); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.02em; margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--frost-200); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--cyan-300); }
.footer-bottom {
  border-top: 1px solid var(--line-dark); padding-top: 24px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: var(--slate-500);
}
.footer-bottom a { color: var(--slate-500); }
.footer-bottom a:hover { color: var(--cyan-300); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 200; max-width: 620px;
  margin: 0 auto; background: var(--navy-950); color: var(--frost-200); padding: 22px 24px;
  border: 1px solid var(--line); display: none; font-size: 0.88rem;
}
.cookie-banner.show { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.cookie-banner a { color: var(--cyan-300); }
.cookie-banner button { white-space: nowrap; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
