/* =================================================================
   Digital Giri — styles.css
   Esthétique inspirée Resend.com, signature Giri (or doux #d4af7a)
   ================================================================= */

:root {
  /* Base */
  --bg: #050505;
  --bg-1: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #1a1a1a;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-hover: rgba(255, 255, 255, 0.045);

  /* Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-bright: rgba(255, 255, 255, 0.22);

  /* Text */
  --text: #ffffff;
  --text-1: rgba(255, 255, 255, 0.72);
  --text-2: rgba(255, 255, 255, 0.52);
  --text-3: rgba(255, 255, 255, 0.36);

  /* Accent — Giri gold */
  --accent: #d4af7a;
  --accent-bright: #e6c89a;
  --accent-soft: rgba(212, 175, 122, 0.12);
  --accent-glow: rgba(212, 175, 122, 0.35);

  /* Typo */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Menlo', 'Consolas', monospace;

  /* Spacing & motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1180px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--accent); color: #000; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =================================================================
   Ambient background — single radial glow + faint grid
   ================================================================= */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.ambient__glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 700px;
  background: radial-gradient(ellipse at center,
    rgba(212, 175, 122, 0.10) 0%,
    rgba(212, 175, 122, 0.04) 30%,
    transparent 70%);
  filter: blur(20px);
}
.ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 70%);
}

/* =================================================================
   Navigation
   ================================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms var(--ease), background 240ms var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--border);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 200ms var(--ease);
}
.nav__logo-mark { color: var(--accent); flex-shrink: 0; }
.nav__logo:hover { color: var(--accent-bright); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  margin-right: auto;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
  transition: color 160ms var(--ease);
  position: relative;
}
.nav__links a:hover { color: var(--text); }

.nav__cta { margin-left: auto; }

.nav__burger {
  display: none;
  width: 36px;
  height: 36px;
  padding: 8px;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}
.nav__burger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform 240ms var(--ease), opacity 200ms var(--ease);
}

/* =================================================================
   Buttons
   ================================================================= */
.btn {
  --pad-y: 10px;
  --pad-x: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 180ms var(--ease), border-color 180ms var(--ease),
              color 180ms var(--ease), transform 180ms var(--ease),
              box-shadow 240ms var(--ease);
  cursor: pointer;
}
.btn svg { transition: transform 200ms var(--ease); }
.btn:hover svg { transform: translateX(2px); }

.btn--primary {
  background: var(--text);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--accent-bright);
  color: #1a1305;
  box-shadow: 0 0 0 1px var(--accent), 0 0 32px var(--accent-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--border-bright);
}

.btn--quiet {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn--quiet:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.btn--lg {
  --pad-y: 14px;
  --pad-x: 22px;
  font-size: 15px;
  border-radius: 10px;
}

/* =================================================================
   Sections shared
   ================================================================= */
section { position: relative; z-index: 1; }

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-1);
  margin-bottom: 24px;
}
.section__eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-glow);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 20px;
}

.section__sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-1);
  max-width: 580px;
  margin: 0 auto;
}

/* =================================================================
   Hero
   ================================================================= */
.hero {
  padding: 80px 0 120px;
  text-align: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.015em;
  color: var(--text-1);
  margin-bottom: 32px;
}
.hero__eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  margin-bottom: 28px;
}

.grad {
  background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.55) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero__sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--text-1);
  margin: 0 auto 40px;
  max-width: 640px;
}

.hero__ctas {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 80px;
}

.hero__proof {
  display: flex;
  justify-content: center;
}
.hero__proof-row {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  max-width: 100%;
}
.hero__proof-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.hero__proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
}

/* =================================================================
   Strip (KPIs)
   ================================================================= */
.strip {
  padding: 40px 0 100px;
}
.strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  overflow: hidden;
}
.strip__cell {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  text-align: left;
}
.strip__cell:last-child { border-right: 0; }
.strip__num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}
.strip__lbl {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

/* =================================================================
   Capabilities grid
   ================================================================= */
.caps { padding: 120px 0; }

.caps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cap {
  background: var(--bg);
  padding: 32px 28px 36px;
  transition: background 240ms var(--ease);
  position: relative;
}
.cap:hover {
  background: var(--bg-1);
}
.cap__icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--accent);
  margin-bottom: 20px;
  transition: border-color 240ms var(--ease), background 240ms var(--ease);
}
.cap:hover .cap__icon {
  background: var(--accent-soft);
  border-color: rgba(212,175,122,0.28);
}
.cap h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 8px;
}
.cap p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-1);
}

/* =================================================================
   Works
   ================================================================= */
.works { padding: 120px 0; }

.works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.work {
  padding: 28px 24px 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 240ms var(--ease), transform 240ms var(--ease), background 240ms var(--ease);
}
.work:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}
.work__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.work__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 10px;
}
.work__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-1);
  margin-bottom: 18px;
}
.work__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-2);
}
.work__meta span[aria-hidden] { opacity: 0.5; }

.works__cta {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

/* =================================================================
   Method / steps
   ================================================================= */
.method { padding: 120px 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  padding: 28px 24px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  transition: border-color 240ms var(--ease);
}
.step:hover { border-color: var(--border-strong); }
.step__no {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.step__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 8px;
}
.step__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-1);
}

/* =================================================================
   Why
   ================================================================= */
.why { padding: 120px 0; }
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}
.why__col {
  padding-left: 24px;
  border-left: 1px solid var(--border);
}
.why__col h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 12px;
}
.why__col p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-1);
}

/* =================================================================
   Pricing
   ================================================================= */
.pricing { padding: 120px 0; }

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
.plan {
  padding: 32px 28px 36px;
  background: linear-gradient(180deg, rgba(255,255,255,0.028), rgba(255,255,255,0.005));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 240ms var(--ease), transform 240ms var(--ease);
}
.plan:hover { border-color: var(--border-strong); }

.plan--feature {
  border-color: rgba(212, 175, 122, 0.35);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212,175,122,0.10) 0%, transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.032), rgba(255,255,255,0.005));
  box-shadow: 0 0 0 1px rgba(212,175,122,0.08), 0 24px 60px -32px rgba(212,175,122,0.4);
}
.plan--feature:hover { border-color: rgba(212, 175, 122, 0.55); }

.plan__badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  background: var(--accent);
  color: #1a1305;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
}

.plan__head { margin-bottom: 24px; }
.plan__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.plan__tag {
  font-size: 14px;
  color: var(--text-1);
  line-height: 1.45;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.plan__amount {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1;
}
.plan__cur { font-size: 22px; font-weight: 500; color: var(--text-1); }
.plan__per { font-size: 13px; color: var(--text-2); }

.plan__feats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}
.plan__feats li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-1);
}
.plan__feats li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  background: var(--accent-soft);
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 122, 0.28);
}
.plan__feats li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px;
  height: 3px;
  border-left: 1.4px solid var(--accent);
  border-bottom: 1.4px solid var(--accent);
  transform: rotate(-45deg);
}

.plan__cta { width: 100%; }

/* =================================================================
   CTA
   ================================================================= */
.cta { padding: 80px 0 120px; }
.cta__card {
  padding: 64px 32px 72px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212,175,122,0.15) 0%, transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  text-align: center;
}
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}
.cta__sub {
  font-size: 16px;
  color: var(--text-1);
  margin-bottom: 32px;
}
.cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.cta__note {
  font-size: 12.5px;
  color: var(--text-2);
}

/* =================================================================
   Footer
   ================================================================= */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  position: relative;
  z-index: 1;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer__brand .nav__logo--footer {
  margin-bottom: 16px;
}
.footer__pitch {
  font-size: 14px;
  color: var(--text-1);
  max-width: 280px;
  line-height: 1.55;
}
.footer__col h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 16px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  font-size: 14px;
  color: var(--text-1);
  transition: color 160ms var(--ease);
}
.footer__col a:hover { color: var(--text); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
}
.footer__pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* =================================================================
   Reveal animations (intersection-driven, JS-gated)
   No-JS users (and SEO crawlers, screenshot tools) get full visibility.
   ================================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 720ms var(--ease-out), transform 720ms var(--ease-out);
  will-change: transform, opacity;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 1080px) {
  .caps__grid { grid-template-columns: repeat(2, 1fr); }
  .strip__grid { grid-template-columns: repeat(2, 1fr); }
  .strip__cell:nth-child(2) { border-right: 0; }
  .strip__cell:nth-child(1), .strip__cell:nth-child(2) { border-bottom: 1px solid var(--border); }
  .works__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .why__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; margin-left: auto; }

  .nav.is-open .nav__links {
    display: flex;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    background: #050505;
    border-top: 1px solid var(--border);
    overflow-y: auto;
  }
  .nav.is-open .nav__links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
  }
  .nav.is-open .nav__links a:last-child { border-bottom: 0; }

  .hero { padding: 56px 0 80px; }
  .hero__ctas { width: 100%; flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
  .hero__proof-row { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 18px; border-radius: 16px; }
  .hero__proof-list { gap: 4px 14px; }

  .strip { padding: 20px 0 80px; }
  .strip__grid { grid-template-columns: 1fr; }
  .strip__cell { border-right: 0 !important; border-bottom: 1px solid var(--border); }
  .strip__cell:last-child { border-bottom: 0; }

  .caps, .works, .method, .why, .pricing { padding: 80px 0; }
  .section__head { margin-bottom: 48px; }
  .caps__grid { grid-template-columns: 1fr; gap: 1px; }
  .works__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cta { padding: 60px 0 80px; }
  .cta__card { padding: 48px 24px 56px; }
}
