@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital,wght@0,400;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --void: #0F0B10;
  --surface: #18121A;
  --surface-2: #241A26;
  --line: rgba(244, 175, 162, 0.1);
  --line-hover: rgba(244, 175, 162, 0.25);
  --text: #F8EEF2;
  --muted: #CDBAC3;
  --soft: #8E7D86;
  --sakura: #F4AFA2;
  --purple: #B48CFF;
  --crimson-neon: #FF1A75;
  --teal: #8FD8CC;
  --gold: #F6B756;
  --max: 1120px;
  
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Background Glows */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 80% 20%, rgba(180, 140, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 15% 50%, rgba(255, 26, 117, 0.06) 0%, transparent 45%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

img {
  display: block;
  max-width: 100%;
}

/* Header & Navigation */
.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 11, 16, 0.7);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: all 0.3s ease;
}

.nav {
  width: min(100% - 32px, var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(244, 175, 162, 0.2);
  box-shadow: 0 4px 12px rgba(15, 11, 16, 0.5);
}

.brand span {
  background: linear-gradient(135deg, var(--text) 30%, var(--sakura) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--sakura);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding-top: 100px;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 8px;
  opacity: 0.25;
  filter: grayscale(20%) contrast(110%);
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--void) 0%, rgba(15, 11, 16, 0.9) 35%, rgba(15, 11, 16, 0.4) 70%, rgba(15, 11, 16, 0.8) 100%),
    linear-gradient(0deg, var(--void) 0%, rgba(15, 11, 16, 0.2) 50%, var(--void) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 60px 0 80px;
}

.hero-content {
  max-width: 620px;
}

.eyebrow {
  color: var(--sakura);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--sakura);
}

h1 {
  font-family: var(--font-serif);
  font-size: 68px;
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.5px;
}

h1 em {
  font-style: italic;
  color: var(--sakura);
}

.hero-copy {
  margin-top: 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 300;
}

.actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Premium Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 26px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.button.primary {
  background: linear-gradient(135deg, var(--crimson-neon) 0%, var(--purple) 100%);
  color: #0F0B10;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(255, 26, 117, 0.25);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 26, 117, 0.4);
}

.button.secondary {
  background: rgba(36, 26, 38, 0.4);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.button.secondary:hover {
  background: rgba(36, 26, 38, 0.8);
  border-color: var(--line-hover);
  transform: translateY(-2px);
}

/* Phone Mockup Screen Simulation (Homepage Preview) */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(180, 140, 255, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

.iphone-mockup {
  width: 290px;
  height: 580px;
  background: #09060b;
  border: 10px solid #241A26;
  border-radius: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(244, 175, 162, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.iphone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 18px;
  background: #241A26;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}

.phone-header {
  padding: 24px 16px 10px;
  background: rgba(24, 18, 26, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--sakura);
}

.phone-user-info h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.phone-user-info span {
  font-size: 9px;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 3px;
}

.phone-user-info span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--teal);
  border-radius: 50%;
}

.phone-chat-area {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  background: radial-gradient(circle at top, rgba(24, 18, 26, 0.4) 0%, #0F0B10 100%);
}

.phone-msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 11px;
  line-height: 1.4;
  position: relative;
}

.phone-msg.ai {
  align-self: flex-start;
  background: rgba(24, 18, 26, 0.6);
  border: 1px solid rgba(244, 175, 162, 0.08);
  color: var(--text);
  border-top-left-radius: 4px;
  backdrop-filter: blur(10px);
}

.phone-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(255, 26, 117, 0.15) 0%, rgba(180, 140, 255, 0.15) 100%);
  border: 1px solid rgba(255, 179, 198, 0.2);
  color: var(--text);
  border-top-right-radius: 4px;
  backdrop-filter: blur(10px);
}

.phone-msg em {
  font-style: italic;
  color: var(--sakura);
  display: block;
  font-size: 9.5px;
  margin-bottom: 3px;
}

.phone-input-bar {
  padding: 8px 12px 14px;
  background: rgba(24, 18, 26, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-input-placeholder {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 10px;
  color: var(--soft);
}

.phone-send-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sakura);
  display: grid;
  place-items: center;
}

/* Animations for simulated chat */
@keyframes streaming {
  from { width: 0; }
  to { width: 100%; }
}

.typing-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--soft);
  border-radius: 50%;
  animation: wave 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes wave {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

/* Sections Base */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.section.alt {
  background: rgba(24, 18, 26, 0.4);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-head h2,
.legal h1 {
  font-family: var(--font-serif);
  font-size: 48px;
  line-height: 1.1;
  font-weight: 400;
}

.section-head h2 em,
.legal h1 em {
  font-style: italic;
  color: var(--sakura);
}

.section-head p,
.legal .lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 300;
}

/* Features Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tile {
  padding: 36px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(24, 18, 26, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.tile:hover {
  transform: translateY(-4px);
  border-color: var(--line-hover);
  background: rgba(36, 26, 38, 0.6);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(244, 175, 162, 0.03);
}

.tile strong {
  display: block;
  color: var(--sakura);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.tile h3 {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
}

.tile p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  font-weight: 300;
}

/* Showcase Section */
.showcase {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.phone-container {
  display: flex;
  justify-content: center;
}

.showcase .phone-frame {
  max-width: 320px;
  border-radius: 40px;
  border: 10px solid #241A26;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(180, 140, 255, 0.05);
  background: var(--surface);
  aspect-ratio: 9 / 16;
}

.showcase .phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-list {
  display: grid;
  gap: 24px;
}

.feature {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 20px;
  align-items: start;
}

.mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #0F0B10;
  font-weight: 700;
  font-size: 16px;
  background: linear-gradient(135deg, var(--sakura) 0%, var(--purple) 100%);
  box-shadow: 0 4px 12px rgba(244, 175, 162, 0.15);
}

.feature h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.feature p {
  color: var(--muted);
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 300;
}

/* Premium Card Section */
.pricing {
  max-width: 760px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 26, 117, 0.06), rgba(180, 140, 255, 0.06));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 40px;
  margin: 0 auto;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.02);
  position: relative;
  overflow: hidden;
}

.pricing::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(180, 140, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.pricing-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 24px;
  margin-bottom: 28px;
}

.pricing h3 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  background: linear-gradient(135deg, var(--text) 30%, var(--sakura) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-badge {
  background: rgba(244, 175, 162, 0.1);
  border: 1px solid rgba(244, 175, 162, 0.2);
  color: var(--sakura);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing ul {
  padding-left: 20px;
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.pricing li {
  color: var(--muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
}

.pricing li::marker {
  color: var(--sakura);
}

.pricing-footer {
  font-size: 13px;
  color: var(--soft);
  font-weight: 300;
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
}

/* Legal & Support Layout */
.legal {
  width: min(100% - 32px, 820px);
  margin: 0 auto;
  padding: 140px 0 80px;
  position: relative;
  z-index: 2;
}

.legal article {
  display: grid;
  gap: 36px;
}

.legal h1 {
  font-size: 56px;
  font-weight: 400;
  margin-bottom: 12px;
}

.legal h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
  margin-top: 12px;
  margin-bottom: 12px;
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
}

.legal section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.legal section:last-of-type {
  border-bottom: none;
}

.legal a {
  color: var(--sakura);
  font-weight: 500;
}

.legal a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Footer Section */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  color: var(--soft);
  font-size: 14px;
  position: relative;
  z-index: 2;
  background: var(--void);
}

.footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer nav {
  display: flex;
  gap: 24px;
}

.footer nav a {
  color: var(--soft);
}

.footer nav a:hover {
  color: var(--text);
}

/* Responsive Styles */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 40px;
    text-align: center;
  }

  .eyebrow {
    justify-content: center;
  }

  .eyebrow::after {
    content: "";
    width: 16px;
    height: 1px;
    background: var(--sakura);
  }

  .actions {
    justify-content: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-visual {
    margin-top: 20px;
  }
}

@media (max-width: 860px) {
  .hero-media {
    grid-template-columns: 1fr;
  }

  .hero-media img:not(:first-child) {
    display: none;
  }

  h1 {
    font-size: 52px;
  }

  .grid,
  .showcase {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .showcase {
    text-align: center;
  }

  .feature {
    text-align: left;
  }

  .phone-container {
    order: -1;
  }

  .footer .wrap {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .nav {
    width: min(100% - 24px, var(--max));
  }

  .nav-links {
    gap: 18px;
  }

  .nav-links a:not(:last-child) {
    display: none;
  }

  .hero-inner,
  .wrap,
  .legal {
    width: min(100% - 24px, var(--max));
  }

  h1 {
    font-size: 42px;
  }

  .section-head h2,
  .legal h1 {
    font-size: 36px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .pricing {
    padding: 24px;
  }
}
