/* ============================================================================
   ivaMind Technologies — Site layout & components
   Premium, product-forward. Inspired by Stripe / Linear / Vercel / Anthropic.
   ============================================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--fg2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); }

h1, h2, h3, h4 { color: var(--fg1); line-height: 1.1; margin: 0; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; }

/* ---- Reveal-on-scroll ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- Eyebrow / overline ---- */
.overline {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-overline); font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand);
}
.overline::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--brand-grad); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: var(--fs-sm); font-weight: 700;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 20px 60px rgba(30,108,230,0.4); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--fg1); border-color: var(--border); }
.btn-ghost:hover { color: var(--fg1); border-color: var(--brand); background: var(--brand-50); }
.btn-arrow { transition: transform .2s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-lg { padding: 15px 28px; font-size: var(--fs-body); }

/* ============================================================================
   NAV
   ============================================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a.navlink { color: var(--fg2); font-size: var(--fs-sm); font-weight: 600; }
.nav-links a.navlink:hover { color: var(--fg1); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--fg1); border-radius: 2px; transition: .3s; }
.nav-toggle span + span { margin-top: 5px; }

@media (max-width: 880px) {
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a.navlink { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links .nav-cta { flex-direction: column; align-items: stretch; padding-top: 16px; }
  .nav-links .nav-cta .btn { justify-content: center; }
  .nav-toggle { display: block; }
  .nav-cta.desktop-only { display: none; }
}
@media (min-width: 881px) { .nav-cta.in-menu { display: none; } }

/* ============================================================================
   HERO
   ============================================================================ */
.hero { padding: 84px 0 96px; overflow: hidden; }
.hero-grid { position: relative; z-index: 2; max-width: 880px; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 14px 7px 10px; font-size: var(--fs-label); font-weight: 600; color: var(--fg2);
  box-shadow: var(--shadow-sm); margin-bottom: 28px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-grad); box-shadow: 0 0 0 4px var(--brand-50); }
.badge b { color: var(--fg1); font-weight: 700; }
h1.hero-title {
  font-size: var(--fs-display); font-weight: 800; letter-spacing: -0.035em; color: var(--ink);
}
h1.hero-title .grad { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1.hero-title .grad-warm { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: var(--fs-lead); color: var(--fg2); max-width: 640px; margin: 24px 0 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Hero ambient visuals */
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: 0; pointer-events: none; }
.orb-1 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(61,155,255,.55), transparent 70%); top: -140px; right: -120px; }
.orb-2 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(255,107,74,.34), transparent 70%); top: 120px; right: 220px; }
.orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(109,93,246,.40), transparent 70%); top: 220px; right: -60px; }
.neural {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(120% 90% at 80% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 80% 30%, #000 30%, transparent 75%);
}
.dotgrid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, transparent 80%);
          mask-image: linear-gradient(180deg, transparent, #000 20%, transparent 80%);
}

/* Trust strip */
.trust { margin-top: 64px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--fg3); }
.trust .label { font-size: var(--fs-label); font-weight: 600; letter-spacing: .04em; }
.trust .line { flex: 1; height: 1px; background: var(--border); min-width: 40px; }
.trust .pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--fg1); font-size: var(--fs-sm); }
.trust .pill svg { color: var(--brand); }

/* ============================================================================
   SECTION HEADERS
   ============================================================================ */
.sec { padding: 100px 0; }
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: var(--fs-h1); margin: 16px 0 0; }
.sec-head p { font-size: var(--fs-lead); color: var(--fg2); margin-top: 18px; }

/* ============================================================================
   ABOUT
   ============================================================================ */
.about { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-cols .lead { font-size: var(--fs-lead); color: var(--fg1); font-weight: 500; }
.about-cols .body p + p { margin-top: 18px; }
@media (max-width: 880px) { .about-cols { grid-template-columns: 1fr; gap: 24px; } }

/* ============================================================================
   FEATURED PRODUCT — KuttyTail
   ============================================================================ */
.product { background: var(--ink-900); color: var(--on-dark-2); overflow: hidden; }
.product h2, .product h3 { color: var(--on-dark-1); }
.product .overline { color: var(--brand-bright); }
.product-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 940px) { .product-grid { grid-template-columns: 1fr; gap: 44px; } }
.status-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  background: rgba(26,155,75,0.14); color: #5bd98a; border: 1px solid rgba(26,155,75,0.35);
  border-radius: 999px; padding: 6px 14px; font-size: var(--fs-label); font-weight: 700;
}
.status-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #36d979; box-shadow: 0 0 0 0 rgba(54,217,121,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(54,217,121,.6);} 70%{box-shadow:0 0 0 8px rgba(54,217,121,0);} 100%{box-shadow:0 0 0 0 rgba(54,217,121,0);} }
.product .kt-title { font-size: var(--fs-h1); }
.product .kt-sub { color: var(--brand-bright); font-weight: 700; font-size: var(--fs-lead); margin-top: 6px; }
.product .kt-desc { color: var(--on-dark-2); margin: 22px 0 28px; max-width: 520px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 0 0 32px; padding: 0; list-style: none; }
@media (max-width: 520px) { .feature-list { grid-template-columns: 1fr; } }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--on-dark-1); }
.feature-list .tick { flex: none; width: 20px; height: 20px; border-radius: 6px; background: rgba(61,155,255,0.16); color: var(--brand-bright); display: grid; place-items: center; margin-top: 1px; }

/* Phone mockups */
.shots { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 18px; }
.phone {
  position: relative; width: 220px; aspect-ratio: 9 / 19.5;
  background: linear-gradient(160deg, #1a2740, #0f1830); border-radius: 34px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  padding: 10px; overflow: hidden;
}
.phone.back { transform: translateY(28px) rotate(-5deg) scale(.9); opacity: .85; }
.phone .screen {
  width: 100%; height: 100%; border-radius: 26px; overflow: hidden;
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  color: var(--fg3); font-size: var(--fs-label); text-align: center; padding: 12px;
  background-image: linear-gradient(180deg, var(--brand-50), #fff);
}
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone .notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 80px; height: 6px; border-radius: 6px; background: rgba(255,255,255,0.18); z-index: 2; }
@media (max-width: 940px) { .phone { width: 190px; } }

/* ============================================================================
   CAPABILITIES + WHY — card grids
   ============================================================================ */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards, .cards.two { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--brand-grad-soft);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s;
}
.card:hover::after { opacity: 1; }
.card .icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand); margin-bottom: 20px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.card p { font-size: var(--fs-sm); color: var(--fg2); }
.card .num { font-size: var(--fs-overline); font-weight: 800; letter-spacing: .12em; color: var(--brand); margin-bottom: 14px; }

/* Tri-color rotation across the capability/why grids: blue · violet · coral.
   Keeps the palette from reading as "all blue" while staying systematic. */
.cards .card:nth-child(3n+2) .icon { background: var(--violet-50); color: var(--violet); }
.cards .card:nth-child(3n+3) .icon { background: var(--accent-50);  color: var(--accent-deep); }
.cards .card:nth-child(3n+2) .num { color: var(--violet); }
.cards .card:nth-child(3n+3) .num { color: var(--accent-deep); }
.cards .card:nth-child(3n+2):hover { border-color: var(--violet-50); }
.cards .card:nth-child(3n+3):hover { border-color: var(--accent-100); }
.cards .card:nth-child(3n+2)::after { background: var(--violet-grad); }
.cards .card:nth-child(3n+3)::after { background: var(--accent-grad); }

.why { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ============================================================================
   VISION ROADMAP
   ============================================================================ */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
@media (max-width: 760px) { .roadmap { grid-template-columns: 1fr; } }
.road-step {
  position: relative; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px 28px;
}
.road-step .when {
  display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-overline);
  font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 16px;
}
.road-step .when .node { width: 10px; height: 10px; border-radius: 50%; background: var(--brand-grad); }
/* Roadmap reads as a 3-stage colour journey: Today blue · Tomorrow coral · Future violet */
.road-step:nth-of-type(2) .when { color: var(--accent-deep); }
.road-step:nth-of-type(2) .when .node { background: var(--accent-grad); }
.road-step.future .when { color: var(--violet); }
.road-step.future .when .node { background: var(--violet); }
.road-step h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.road-step p { font-size: var(--fs-sm); }
.road-line { position: absolute; top: 52px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, var(--brand), var(--accent), var(--violet)); opacity: .35; z-index: 0; }
@media (max-width: 760px) { .road-line { display: none; } }

/* ============================================================================
   CONTACT
   ============================================================================ */
.contact { background: var(--ink-900); color: var(--on-dark-2); overflow: hidden; }
.contact h2 { color: var(--on-dark-1); }
.contact .overline { color: var(--brand-bright); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
.contact h2 { font-size: var(--fs-h1); }
.contact .lead { color: var(--on-dark-2); font-size: var(--fs-lead); margin: 18px 0 32px; }
.contact-info { display: grid; gap: 4px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--border-dark); }
.info-row:last-child { border-bottom: 0; }
.info-row .ico { flex: none; width: 40px; height: 40px; border-radius: 12px; background: rgba(61,155,255,0.14); color: var(--brand-bright); display: grid; place-items: center; }
.info-row .k { font-size: var(--fs-overline); text-transform: uppercase; letter-spacing: .1em; color: var(--on-dark-2); font-weight: 700; }
.info-row .v { color: var(--on-dark-1); font-weight: 600; font-size: var(--fs-body); }
.info-row a.v { color: var(--brand-bright); }
.contact-card {
  background: linear-gradient(160deg, rgba(30,108,230,0.18), rgba(109,93,246,0.10));
  border: 1px solid var(--border-dark); border-radius: var(--radius-lg); padding: 36px;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer { background: var(--ink-900); color: var(--on-dark-2); padding: 56px 0 40px; border-top: 1px solid var(--border-dark); }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer .brand img { height: 28px; filter: brightness(0) invert(1); opacity: .95; }
.footer-tag { color: var(--on-dark-2); font-size: var(--fs-sm); margin-top: 14px; max-width: 280px; }
.footer-nav { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 { color: var(--on-dark-1); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--on-dark-2); font-size: var(--fs-sm); padding: 5px 0; }
.footer-col a:hover { color: var(--brand-bright); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border-dark); font-size: var(--fs-label); color: var(--fg3); }

/* ============================================================================
   LEGAL PAGES
   ============================================================================ */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: var(--fs-h1); margin-bottom: 8px; }
.legal .updated { color: var(--fg3); font-size: var(--fs-sm); margin-bottom: 40px; }
.legal h2 { font-size: var(--fs-h2); margin: 40px 0 12px; }
.legal p, .legal li { font-size: var(--fs-body); color: var(--fg2); }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal a { font-weight: 600; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 24px; }
.notfound .code { font-size: clamp(4rem, 10vw, 7rem); font-weight: 800; letter-spacing: -.04em; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound h1 { font-size: var(--fs-h2); margin: 8px 0 14px; }
.notfound p { margin-bottom: 28px; }
