/* ============================================================
   Orchid — visual clone
   Design tokens extracted from orchid.ai (computed styles)
   ============================================================ */

/* ---------- Fonts (served from orchid.ai) ---------- */
@font-face {
  font-family: "Louize";
  src: url("https://orchid.ai/_next/static/media/LouizeTrial_Regular-s.p.0a-9uy4cyb-yd.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Louize";
  src: url("https://orchid.ai/_next/static/media/LouizeTrial_Italic-s.p.06_9tgfmj4v0g.otf") format("opentype");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Louize";
  src: url("https://orchid.ai/_next/static/media/LouizeTrial_Medium-s.p.03xvts30_xtjo.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Louize";
  src: url("https://orchid.ai/_next/static/media/LouizeTrial_MediumItalic-s.p.0l-4mlb6a6qjx.otf") format("opentype");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Lausanne";
  src: url("https://orchid.ai/_next/static/media/TWKLausanne_400-s.p.0je.tfsjvtz9u.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lausanne";
  src: url("https://orchid.ai/_next/static/media/TWKLausanne_500-s.p.0gjsulcx34iya.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --paper: #fcfcfd;
  --background: #fcfcfd;
  --ink: #08152e;
  --foreground: #08152e;
  --muted-foreground: #95a0aa;
  --content-text: #424242;
  --content-text-muted: #848484;
  --content-divider: #e4e7ea;
  --card: #f5f6f8;
  --surface-2: #f4f5f7;
  --chip-bg: #ebeef2;
  --glass-border: #08152e1a;
  --white: #fff;
  --imessage-blue: #0a7cff;
  --imessage-gray: #e9e9eb;

  --font-serif: "Louize", Georgia, "Times New Roman", serif;
  --font-sans: "Lausanne", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;

  --maxw: 1200px;
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500; line-height: 1;
  padding: 12px 20px; border-radius: 999px;
  transition: transform 0.15s var(--ease-out), opacity 0.15s var(--ease-out), background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { opacity: 0.9; }
.btn--white { background: var(--white); color: var(--ink); box-shadow: 0 6px 24px rgba(0,0,0,0.18); }
.btn--ghost { color: var(--ink); padding: 10px 8px; }
.btn .imsg-ico { width: 20px; height: 20px; border-radius: 6px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252,252,253,0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-serif); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; }
.brand svg { width: 22px; height: 22px; }
.main-nav { display: flex; gap: 30px; margin-left: -40px; }
.main-nav a { font-size: 15px; color: var(--ink); opacity: 0.85; transition: opacity 0.15s; }
.main-nav a:hover { opacity: 1; }
.header-cta { display: flex; align-items: center; gap: 6px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px;
  min-height: calc(100vh - 70px); padding: 40px 0 80px;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--chip-bg); border-radius: 999px; padding: 5px 12px 5px 6px;
  font-size: 13px; color: var(--ink); margin-bottom: 28px;
  transition: background 0.15s;
}
.badge:hover { background: #e2e6eb; }
.badge .tag { background: var(--ink); color: var(--white); border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 500; }
h1.hero-title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 64px; line-height: 1.05; letter-spacing: -0.04em; color: var(--ink);
  margin-bottom: 24px;
}
h1.hero-title .rotator { font-style: italic; color: var(--ink); }
.rotator-wrap { display: inline-block; position: relative; }
.hero-sub {
  font-size: 18px; color: var(--content-text); max-width: 30em; line-height: 1.55; margin-bottom: 32px;
}

/* iPhone mockup */
.phone-stage { display: flex; justify-content: center; align-items: center; position: relative; }
.phone {
  position: relative; width: 300px; aspect-ratio: 300 / 620;
  background: #000; border-radius: 52px; padding: 12px;
  box-shadow: 0 40px 90px -30px rgba(8,21,46,0.45), 0 0 0 2px #1a1a1a;
}
.phone-screen {
  width: 100%; height: 100%; background: var(--white); border-radius: 42px; overflow: hidden;
  display: flex; flex-direction: column; position: relative;
}
.notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; background: #000; border-radius: 999px; z-index: 5; }
.ios-status { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px 6px; font-size: 14px; font-weight: 600; color: #000; }
.ios-status .icons { display: flex; gap: 6px; }
.chat-header {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 6px 12px 12px; border-bottom: 0.5px solid #e5e5e5;
}
.chat-header .avatar { width: 46px; height: 46px; border-radius: 999px; background: #111; object-fit: cover; }
.chat-header .name { font-size: 12px; color: #333; }
.chat-body { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; background: var(--white); }
.chat-time { text-align: center; font-size: 11px; color: #8a8a8e; margin: 4px 0; }
.chat-time b { color: #6c6c70; font-weight: 600; }
.bubble { max-width: 78%; padding: 8px 13px; font-size: 13.5px; line-height: 1.35; border-radius: 18px; }
.bubble.sent { align-self: flex-end; background: var(--imessage-blue); color: #fff; border-bottom-right-radius: 5px; }
.bubble.recv { align-self: flex-start; background: var(--imessage-gray); color: #000; border-bottom-left-radius: 5px; }
.bubble img { border-radius: 12px; margin-top: 2px; }
.chat-input { display: flex; align-items: center; gap: 8px; padding: 10px 12px 16px; border-top: 0.5px solid #ececec; }
.chat-input .field { flex: 1; border: 1px solid #e0e0e0; border-radius: 999px; padding: 7px 14px; font-size: 13px; color: #b9b9b9; }

/* decorative sparkles */
.sparkle { position: absolute; opacity: 0.5; }

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial { padding: 90px 0; text-align: center; }
.testimonial .t-avatar {
  width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 34px; object-fit: cover;
  box-shadow: 0 18px 40px -12px rgba(8,21,46,0.28);
}
.testimonial blockquote {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 40px; line-height: 1.22; letter-spacing: -0.02em; color: var(--ink);
  max-width: 16em; margin: 0 auto 26px;
}
.testimonial cite { font-style: normal; font-size: 14px; color: var(--muted-foreground); }
.fade-swap { transition: opacity 0.5s var(--ease-out); }

/* ============================================================
   FEATURE STACK
   ============================================================ */
.features { padding: 40px 0; }
.feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px;
  padding: 70px 0;
}
.feature.reverse .feature-media { order: -1; }
.feature-copy h3 {
  font-family: var(--font-serif); font-weight: 500; font-size: 32px; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 14px;
}
.feature-copy .lead { font-size: 17px; color: var(--content-text); line-height: 1.5; max-width: 30em; margin-bottom: 28px; }
.feature-list { margin-bottom: 30px; }
.feature-list .row {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 2px; border-top: 1px solid var(--content-divider); font-size: 16px; color: #2c3646;
}
.feature-list .row:last-child { border-bottom: 1px solid var(--content-divider); }
.feature-list .row svg { width: 20px; height: 20px; flex: none; color: #6b7683; }

/* media cards */
.media-card {
  position: relative; border-radius: var(--radius-3xl); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--surface-2);
  box-shadow: 0 30px 60px -30px rgba(8,21,46,0.35);
}
.media-card > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* floating app icons over photo */
.app-ico {
  position: absolute; width: 62px; height: 62px; border-radius: 15px;
  background: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 24px -8px rgba(0,0,0,0.4);
}
.app-ico img { width: 74%; height: 74%; object-fit: contain; }
.app-ico.center { width: 78px; height: 78px; background: #1a120e; }
.app-ico.center img { width: 62%; height: 62%; }

/* habit chips (blue imessage on photo) */
.habit-bubble {
  position: absolute; background: var(--imessage-blue); color: #fff;
  font-size: 13px; line-height: 1.3; padding: 9px 13px; border-radius: 16px; max-width: 190px;
  box-shadow: 0 8px 20px -6px rgba(10,124,255,0.5);
}

/* notification badge icons */
.notif-ico { position: absolute; width: 66px; height: 66px; border-radius: 15px; box-shadow: 0 14px 26px -10px rgba(0,0,0,0.5); }
.notif-ico .count {
  position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px;
  background: #ff3b30; color: #fff; font-size: 12px; font-weight: 600; border-radius: 999px;
  display: grid; place-items: center; border: 2px solid rgba(255,255,255,0.85);
}

/* iOS notification banner */
.notif-banner {
  position: absolute; left: 7%; right: 7%; top: 42%;
  background: rgba(245,245,247,0.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: 20px; padding: 12px 14px; display: flex; gap: 11px; align-items: flex-start;
  box-shadow: 0 14px 40px -14px rgba(0,0,0,0.4);
}
.notif-banner .n-ico { width: 38px; height: 38px; border-radius: 10px; background: #1a120e; display: grid; place-items: center; flex: none; }
.notif-banner .n-ico img { width: 66%; }
.notif-banner .n-title { font-size: 14px; font-weight: 600; color: #111; }
.notif-banner .n-body { font-size: 13px; color: #333; line-height: 1.32; }
.notif-banner .n-now { position: absolute; top: 12px; right: 14px; font-size: 12px; color: #9a9a9a; }

/* imessage card (second brain) */
.imsg-card { position: absolute; inset: 0; padding: 20px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.imsg-card .bubble { max-width: 66%; }
.imsg-card .bubble img { width: 150px; border-radius: 12px; }

/* dotted section separator */
.sep { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 4px 0; }
.sep::before, .sep::after { content: ""; height: 1px; flex: 1; background: var(--content-divider); }
.sep .dots { display: flex; gap: 6px; padding: 0 18px; }
.sep .dots i { width: 7px; height: 7px; border-radius: 999px; background: #b9c0c9; display: block; }
.sep .dots i:nth-child(odd) { border-radius: 0 999px 999px 999px; }

/* ============================================================
   CLOSING CTA
   ============================================================ */
.closing { padding: 40px 0 90px; }
.closing-card {
  position: relative; border-radius: var(--radius-3xl); overflow: hidden;
  min-height: 620px; display: grid; place-items: center; text-align: center;
}
.closing-card .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.closing-card .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,16,38,0.35), rgba(6,16,38,0.55)); }
.closing-inner { position: relative; z-index: 2; }
.closing-inner h2 {
  font-family: var(--font-serif); font-weight: 500; color: #fff;
  font-size: 62px; letter-spacing: -0.03em; margin-bottom: 30px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--content-divider); padding: 56px 0 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid .brand { font-size: 24px; align-items: flex-start; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--muted-foreground); padding: 5px 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--ink); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .main-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; min-height: auto; padding: 24px 0 60px; gap: 48px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .badge { margin-left: auto; margin-right: auto; }
  h1.hero-title { font-size: 46px; }
  .feature { grid-template-columns: 1fr; gap: 36px; padding: 48px 0; }
  .feature.reverse .feature-media { order: 0; }
  .feature-media { order: -1; }
  .testimonial blockquote { font-size: 28px; }
  .closing-inner h2 { font-size: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  h1.hero-title { font-size: 38px; }
  .closing-inner h2 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
}
