/* ============================================================
   Soklia Landing Page Styles
   Pure CSS — no frameworks. Mobile-first, accessible.
   ============================================================ */

/* --------------------------------------------------------
   Tokens & Reset
   -------------------------------------------------------- */
:root {
  --bg: #14121a;
  --surface: #1e1b27;
  --text: #fff5eb;
  --muted: #b8b2c4;
  --accent: #f37565;
  --border: #2e2a38;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.45);

  --max-width: 1120px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover, a:focus {
  text-decoration: underline;
}

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

/* --------------------------------------------------------
   Skip Link (Accessibility)
   -------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  background: var(--accent);
  color: var(--bg);
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  z-index: 10000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
  text-decoration: none;
}

/* --------------------------------------------------------
   Header
   -------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(20, 18, 26, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 18px;
  flex-shrink: 0;
}

.logo-link img {
  height: 36px;
  width: auto;
}

.logo-link:hover,
.logo-link:focus {
  text-decoration: none;
  opacity: 0.9;
}

/* Desktop Nav */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 32px;
}

.desktop-nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.desktop-nav a:hover,
.desktop-nav a:focus {
  color: var(--text);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(243, 117, 101, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #ff8a7a;
  box-shadow: 0 6px 20px rgba(243, 117, 101, 0.45);
  text-decoration: none;
}

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

.btn-ghost:hover,
.btn-ghost:focus {
  background: var(--surface);
  text-decoration: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}

.menu-toggle:hover {
  background: var(--surface);
}

.menu-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Panel */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(20, 18, 26, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 999;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav a {
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--surface);
  text-decoration: none;
}

.mobile-nav .btn-primary {
  margin-top: 8px;
  justify-content: center;
}

/* --------------------------------------------------------
   Hero
   -------------------------------------------------------- */
.hero {
  position: relative;
  padding: 64px 24px 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.glow-orb.violet {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  top: -120px;
  right: -100px;
}

.glow-orb.coral {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #f37565 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
}

.glow-orb.night {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.2;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 48px;
}

.hero-text {
  max-width: 640px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 em {
  color: var(--accent);
  font-style: italic;
}

.hero p {
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.badge-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}

.badge-play:hover,
.badge-play:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(243, 117, 101, 0.15);
  text-decoration: none;
  transform: translateY(-1px);
}

.badge-play svg {
  flex-shrink: 0;
}

/* Hero Visual — Phone Bloom */
.hero-visual {
  position: relative;
  width: 280px;
  height: 520px;
  flex-shrink: 0;
}

.bloom-svg {
  position: absolute;
  inset: -60px;
  width: calc(100% + 120px);
  height: calc(100% + 120px);
  z-index: 0;
}

.phone-mockup {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #1e1b27 0%, #14121a 100%);
  border: 2px solid var(--border);
  border-radius: 36px;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(243, 117, 101, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  width: 100px;
  height: 22px;
  background: var(--bg);
  border-radius: 0 0 14px 14px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-top: none;
}

.phone-screen {
  flex: 1;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.45;
  animation: bubbleIn 0.6s ease both;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
  animation-delay: 0.3s;
}

.chat-bubble.ai {
  align-self: flex-start;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  animation-delay: 0.7s;
}

.chat-bubble.ai-2 {
  align-self: flex-start;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  animation-delay: 1.1s;
}

.phone-dots {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  align-self: flex-start;
}

.phone-dots span {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: dotPulse 1.4s infinite ease-in-out both;
}

.phone-dots span:nth-child(2) { animation-delay: 0.2s; }
.phone-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes dotPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%           { transform: scale(1);   opacity: 1; }
}

/* --------------------------------------------------------
   Features
   -------------------------------------------------------- */
.features {
  padding: 80px 24px;
  position: relative;
}

.features-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--muted);
  font-size: 18px;
  max-width: 520px;
  margin: 0 auto;
}

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

.feature-card {
  background: rgba(30, 27, 39, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(243, 117, 101, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(243, 117, 101, 0.12);
  border: 1px solid rgba(243, 117, 101, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* --------------------------------------------------------
   Privacy First
   -------------------------------------------------------- */
.privacy {
  padding: 80px 24px;
}

.privacy-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.privacy-card {
  background: linear-gradient(135deg, rgba(30, 27, 39, 0.7) 0%, rgba(20, 18, 26, 0.9) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.privacy-card::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(243, 117, 101, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.privacy-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(243, 117, 101, 0.1);
  border: 1px solid rgba(243, 117, 101, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.privacy-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
}

.privacy-card h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3.5vw, 34px);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.privacy-card > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
}

.privacy-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.privacy-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.privacy-badges span svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  flex-shrink: 0;
}

/* --------------------------------------------------------
   Footer
   -------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--text);
  text-decoration: none;
}

.footer-copy {
  color: var(--muted);
  font-size: 13px;
}

.footer-copy a {
  color: var(--accent);
}

/* --------------------------------------------------------
   Responsive — Tablet & Desktop
   -------------------------------------------------------- */
@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .privacy-card {
    padding: 56px 48px;
  }
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .desktop-nav {
    display: flex;
  }

  .hero {
    padding: 80px 24px 100px;
  }

  .hero-inner {
    flex-direction: row;
    text-align: left;
    gap: 64px;
  }

  .hero-text {
    flex: 1;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-visual {
    width: 300px;
    height: 560px;
  }

  .features {
    padding: 100px 24px;
  }

  .privacy {
    padding: 100px 24px;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-visual {
    width: 320px;
    height: 600px;
  }
}

/* --------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .chat-bubble,
  .phone-dots span {
    animation: none;
  }

  .feature-card,
  .badge-play {
    transition: none;
  }
}

/* --------------------------------------------------------
   High Contrast (Accessibility)
   -------------------------------------------------------- */
@media (prefers-contrast: more) {
  :root {
    --border: #5a5470;
    --muted: #d4cee0;
  }

  .feature-card,
  .privacy-card,
  .phone-mockup {
    border-width: 2px;
  }
}
