/* ============================================================
   MINTHY — Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;1,14..32,400&family=Sora:wght@600;700;800&display=swap');

/* ============================================================
   Tokens
   ============================================================ */
:root {
  /* Backgrounds */
  --bg:    #F8FAFC;
  --bg-1:  #FFFFFF;
  --bg-2:  #F1F5F9;
  --bg-3:  #E8EDF5;

  /* Borders */
  --bdr:   #E2E8F0;
  --bdr-1: #CBD5E1;
  --bdr-2: #94A3B8;

  /* Brand — from logo */
  --ind:    #6366F1;   /* Indigo 500 */
  --ind-d:  #4F46E5;   /* Indigo 600 — hover */
  --ind-l:  #EEF2FF;   /* Indigo 50 */
  --ind-m:  #C7D2FE;   /* Indigo 200 */

  --sky:    #0EA5E9;   /* Sky 500 */
  --sky-l:  #E0F2FE;

  --teal:   #14B8A6;   /* Teal 500 */
  --teal-l: #CCFBF1;

  /* Text */
  --t:      #0F172A;   /* Slate 900 */
  --t-1:    #334155;   /* Slate 700 */
  --t-2:    #64748B;   /* Slate 500 */
  --t-3:    #94A3B8;   /* Slate 400 */
  --t-4:    #CBD5E1;   /* Slate 300 */

  /* Fonts */
  --font-h: 'Sora', system-ui, sans-serif;
  --font-b: 'Inter', system-ui, sans-serif;

  /* Type scale */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.375rem;
  --fs-xl:   clamp(1.5rem,  2.5vw,  1.875rem);
  --fs-2xl:  clamp(1.875rem, 3.5vw,  2.5rem);
  --fs-3xl:  clamp(2.25rem,  5vw,    3.5rem);
  --fs-4xl:  clamp(3rem,     7.5vw,  5.25rem);

  /* Space */
  --sp-1:  0.25rem;  --sp-2:  0.5rem;
  --sp-3:  0.75rem;  --sp-4:  1rem;
  --sp-5:  1.25rem;  --sp-6:  1.5rem;
  --sp-8:  2rem;     --sp-10: 2.5rem;
  --sp-12: 3rem;     --sp-16: 4rem;
  --sp-20: 5rem;     --sp-24: 6rem;
  --sp-32: 8rem;

  /* Radius */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  20px;
  --r-2xl: 28px;
  --r-full: 9999px;

  /* Shadows — restrained, real */
  --sh-xs: 0 1px 2px rgba(15,23,42,.06);
  --sh-sm: 0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.06);
  --sh-md: 0 4px 6px -1px rgba(15,23,42,.07), 0 2px 4px -2px rgba(15,23,42,.06);
  --sh-lg: 0 10px 15px -3px rgba(15,23,42,.08), 0 4px 6px -4px rgba(15,23,42,.05);
  --sh-xl: 0 20px 25px -5px rgba(15,23,42,.09), 0 8px 10px -6px rgba(15,23,42,.05);
  --sh-ind: 0 4px 14px rgba(99,102,241,.25);

  /* Motion */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --t-1: 100ms;
  --t-2: 200ms;
  --t-3: 300ms;
  --t-5: 500ms;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-b);
  font-size: var(--fs-base);
  color: var(--t);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
h1,h2,h3,h4,h5 {
  font-family: var(--font-h);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--t);
}

/* ============================================================
   Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--sp-8);
}
.container--narrow { max-width: 860px; }
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }

/* ============================================================
   Intro Screen
   ============================================================ */
#intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--sp-8);
  transition: opacity .7s var(--ease-expo), transform .7s var(--ease-expo);
}

#intro.exit {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

#intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6);
}

.intro-logo {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease-expo), transform .7s var(--ease-expo);
}
.intro-logo.in { opacity: 1; transform: none; }
.intro-logo img { height: 48px; }

.intro-line {
  width: 200px;
  height: 2px;
  background: var(--bdr);
  border-radius: var(--r-full);
  overflow: hidden;
  opacity: 0;
  transition: opacity .4s var(--ease) .4s;
}
.intro-line.in { opacity: 1; }

.intro-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ind), var(--sky), var(--teal));
  border-radius: var(--r-full);
  transition: width 2.2s var(--ease-expo);
}

/* ============================================================
   Scroll Reveal
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s var(--ease-expo), transform .75s var(--ease-expo);
}
[data-reveal="left"]  { transform: translateX(-24px); }
[data-reveal="right"] { transform: translateX(24px); }
[data-reveal="up"]    { transform: translateY(28px); }
[data-reveal="fade"]  { transform: none; }
[data-reveal].in { opacity: 1; transform: none; }

[data-delay="1"] { transition-delay: .08s; }
[data-delay="2"] { transition-delay: .15s; }
[data-delay="3"] { transition-delay: .22s; }
[data-delay="4"] { transition-delay: .30s; }
[data-delay="5"] { transition-delay: .38s; }
[data-delay="6"] { transition-delay: .46s; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(6rem, 14vw, 10rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Dot grid */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#CBD5E1 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 40%, transparent 100%);
  opacity: .6;
}

/* Gradient blobs — not glowing, just soft light */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .18;
}
.hero-blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #6366F1, transparent 70%);
  top: -200px;
  right: -100px;
}
.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #0EA5E9, transparent 70%);
  bottom: 0;
  left: -100px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 58fr 42fr;
  gap: var(--sp-16);
  align-items: center;
}

/* Pill badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 5px 12px 5px 6px;
  background: var(--bg-1);
  border: 1px solid var(--bdr);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--t-2);
  margin-bottom: var(--sp-5);
  box-shadow: var(--sh-sm);
}
.hero-badge-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: var(--r-full);
  background: var(--ind-l);
  color: var(--ind);
}

.hero-title {
  font-size: var(--fs-4xl);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: var(--sp-5);
  color: var(--t);
}

.hero-title .accent {
  background: linear-gradient(120deg, var(--ind), var(--sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: var(--fs-md);
  color: var(--t-2);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: var(--sp-8);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-12);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--bdr);
}
.stat-num {
  font-family: var(--font-h);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--t);
  line-height: 1;
}
.stat-num em {
  font-style: normal;
  color: var(--ind);
}
.stat-label {
  font-size: var(--fs-xs);
  color: var(--t-3);
  margin-top: 3px;
}
.stat-sep {
  width: 1px;
  height: 32px;
  background: var(--bdr);
}

/* Device mockup — light theme */
.hero-mockup {
  position: relative;
}
.mockup-shell {
  background: var(--bg-1);
  border: 1px solid var(--bdr);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl), 0 0 0 1px rgba(15,23,42,.04);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  animation: mockFloat 6s ease-in-out infinite;
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--bdr);
  background: var(--bg-2);
}
.mock-dot { width: 9px; height: 9px; border-radius: 50%; }
.mock-dot:nth-child(1) { background: #FF5F57; }
.mock-dot:nth-child(2) { background: #FFBD2E; }
.mock-dot:nth-child(3) { background: #28CA41; }
.mock-url {
  flex: 1;
  height: 6px;
  background: var(--bdr);
  border-radius: var(--r-full);
  margin-left: var(--sp-3);
}

.mockup-body {
  padding: var(--sp-4);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}
.mock-card {
  background: var(--bg-2);
  border: 1px solid var(--bdr);
  border-radius: var(--r-md);
  padding: var(--sp-4);
}
.mock-card.full { grid-column: span 2; }
.mock-line {
  height: 6px;
  border-radius: var(--r-full);
  background: var(--bdr);
  margin-bottom: var(--sp-2);
}
.mock-line.ind  { background: linear-gradient(90deg, var(--ind), var(--ind-m)); width: 72%; }
.mock-line.sky  { background: linear-gradient(90deg, var(--sky), var(--sky-l)); width: 55%; }
.mock-line.teal { background: linear-gradient(90deg, var(--teal), var(--teal-l)); width: 63%; }
.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 36px;
  margin-top: var(--sp-3);
}
.mock-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  transform: scaleY(0);
  transform-origin: bottom;
  animation: barUp .5s var(--ease-expo) forwards;
}

/* Float cards */
.mockup-float {
  position: absolute;
  background: var(--bg-1);
  border: 1px solid var(--bdr);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--sh-lg);
  white-space: nowrap;
  animation: floatTick 5s ease-in-out infinite;
}
.mockup-float.f1 { top: 10%; right: -8%; animation-delay: -1.5s; }
.mockup-float.f2 { bottom: 16%; left: -10%; animation-delay: -3s; }

.mf-label {
  font-size: 10px;
  color: var(--t-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 2px;
}
.mf-value {
  font-family: var(--font-h);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--t);
}
.mf-value em { font-style: normal; color: var(--ind); }

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: var(--sp-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  opacity: 0;
  animation: fadeUp 1s var(--ease-expo) 3.5s forwards;
  pointer-events: none;
}
.scroll-track {
  width: 1px;
  height: 44px;
  background: var(--bdr);
  position: relative;
  overflow: hidden;
}
.scroll-track::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--ind), transparent);
  animation: scrollDrop 1.5s ease infinite;
}
.scroll-text {
  font-size: 10px;
  color: var(--t-4);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ============================================================
   Marquee
   ============================================================ */
.marquee-band {
  border-block: 1px solid var(--bdr);
  background: var(--bg-1);
  padding-block: var(--sp-4);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-item {
  padding-inline: var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--t-3);
  font-weight: 500;
  letter-spacing: .05em;
  white-space: nowrap;
}
.marquee-dot {
  color: var(--ind);
  opacity: .5;
  font-size: var(--fs-sm);
  line-height: 1.7;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 11px 22px;
  border-radius: var(--r-lg);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: all var(--t-2) var(--ease);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  font-family: var(--font-b);
  letter-spacing: .01em;
}

/* Primary — fills with brand indigo */
.btn-primary {
  background: var(--ind);
  color: #fff;
  box-shadow: var(--sh-ind);
}
.btn-primary:hover {
  background: var(--ind-d);
  box-shadow: 0 6px 20px rgba(99,102,241,.35);
  transform: translateY(-1px);
}
.btn-primary:active { transform: none; box-shadow: var(--sh-ind); }

/* Secondary — light border style */
.btn-secondary {
  background: var(--bg-1);
  color: var(--t);
  border: 1px solid var(--bdr);
  box-shadow: var(--sh-sm);
}
.btn-secondary:hover {
  border-color: var(--bdr-1);
  background: var(--bg-2);
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
}

/* Ghost — text only with subtle hover */
.btn-ghost {
  background: transparent;
  color: var(--t-2);
  padding-inline: var(--sp-3);
}
.btn-ghost:hover {
  background: var(--bg-2);
  color: var(--t);
}

.btn-sm  { padding: 8px 16px; font-size: var(--fs-xs); }
.btn-lg  { padding: 13px 28px; font-size: var(--fs-base); }

/* Arrow link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ind);
  transition: gap var(--t-2) var(--ease);
}
.link-arrow:hover { gap: var(--sp-3); }
.link-arrow svg { flex-shrink: 0; }

/* ============================================================
   Section labels
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ind);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: '';
  width: 16px;
  height: 2px;
  background: var(--ind);
  border-radius: var(--r-full);
}

.sec-title {
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: var(--sp-4);
  color: var(--t);
}
.sec-title .accent {
  background: linear-gradient(120deg, var(--ind), var(--sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sec-desc {
  font-size: var(--fs-md);
  color: var(--t-2);
  line-height: 1.72;
  font-weight: 400;
  max-width: 580px;
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--bg-1);
  border: 1px solid var(--bdr);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  transition: border-color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease), transform var(--t-2) var(--ease);
}
.card:hover {
  border-color: var(--bdr-1);
  box-shadow: var(--sh-lg);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--ind-l);
  color: var(--ind);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
  transition: background var(--t-2) var(--ease);
}
.card:hover .card-icon { background: var(--ind); color: #fff; }

/* ============================================================
   Keyframes
   ============================================================ */
@keyframes mockFloat {
  0%,100% { transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(0); }
  50%     { transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(-12px); }
}
@keyframes floatTick {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}
@keyframes barUp { to { transform: scaleY(1); } }
@keyframes scrollDrop {
  0%   { top:-100%; }
  100% { top:100%; }
}
@keyframes fadeUp {
  from { opacity:0; transform:translateX(-50%) translateY(12px); }
  to   { opacity:.7; transform:translateX(-50%) translateY(0); }
}
@keyframes marquee {
  from { transform:translateX(0); }
  to   { transform:translateX(-50%); }
}
@keyframes spin { to { transform:rotate(360deg); } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-mockup { display: none; }
}
@media (max-width: 768px) {
  .container { padding-inline: var(--sp-5); }
  .hero-title { font-size: var(--fs-3xl); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: var(--sp-5); }
}
@media (max-width: 480px) {
  .hero-stats { flex-wrap: wrap; gap: var(--sp-4); }
  .stat-sep { display: none; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .sec-desc { font-size: var(--fs-base); }
}
@media (max-width: 380px) {
  .container { padding-inline: var(--sp-4); }
  .hero-title { font-size: clamp(1.75rem, 8.5vw, 2.25rem); }
  .hero-desc { font-size: var(--fs-base); }
  .sec-title { font-size: clamp(1.75rem, 7.5vw, 2.25rem); }
  .btn-lg { padding: 12px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
