/* ============================================================
   TURN — Aurora Theme
   ============================================================ */

:root {
  --bg-deep:    #0a0515;
  --bg-base:    #12091f;
  --bg-card:    #1a0f2e;
  --bg-card-2:  #221338;
  --border:     rgba(245, 158, 11, 0.18);
  --border-2:   rgba(245, 158, 11, 0.35);

  --accent-1:   #f59e0b;
  --accent-2:   #ef4444;
  --accent-soft: rgba(245, 158, 11, 0.5);
  --accent-glow: rgba(245, 158, 11, 0.35);
  --pink-glow:  rgba(239, 68, 68, 0.35);

  --text:       #f5f3ff;
  --text-soft:  #fde4c8;
  --text-muted: #fbbf24;

  --gradient:   linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --gradient-2: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #f59e0b 100%);

  --radius:     18px;
  --radius-sm:  12px;
  --radius-lg:  24px;

  --shadow:     0 10px 40px rgba(0,0,0,0.4);
  --shadow-lg:  0 20px 60px rgba(245, 158, 11, 0.25);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============ LIGHT THEME ============ */
body.light {
  --bg-deep:    #f7f5ff;
  --bg-base:    #ffffff;
  --bg-card:    #ffffff;
  --bg-card-2:  #faf8ff;
  --border:     rgba(245, 158, 11, 0.15);
  --border-2:   rgba(245, 158, 11, 0.3);
  --text:       #1a0f2e;
  --text-soft:  #78350f;
  --text-muted: #d97706;
  --shadow:     0 10px 40px rgba(245, 158, 11, 0.1);
  --shadow-lg:  0 20px 60px rgba(245, 158, 11, 0.18);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
img { max-width: 100%; display: block; }

.grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============ LAYOUT ============ */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
  position: relative;
}
.section-head {
  text-align: center;
  margin-bottom: 60px;
}
.section-head h2 {
  font-size: clamp(28px, 5vw, 48px);
  margin-top: 12px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.25s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 18px 36px; font-size: 16px; }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 32px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--accent-glow), 0 0 60px var(--pink-glow);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid var(--border-2);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--accent-1);
  transform: translateY(-2px);
}

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  backdrop-filter: blur(20px);
  background: rgba(10, 5, 21, 0.7);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
body.light .header { background: rgba(255, 255, 255, 0.8); }

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--gradient);
  border-radius: 10px;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav a {
  color: var(--text-soft);
  transition: color 0.2s;
}
.nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--border);
  font-size: 16px;
  transition: all 0.2s;
}
.theme-toggle:hover {
  background: rgba(245, 158, 11, 0.2);
  transform: rotate(180deg);
}

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  font-size: 20px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--border);
}

/* ============ MOBILE MENU ============ */
.mobile-menu {
  display: none;
  position: fixed;
  top: 73px; left: 0; right: 0;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.25s;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 500;
  transition: background 0.2s;
}
.mobile-menu a:hover { background: rgba(245, 158, 11, 0.1); }
.mobile-menu .btn { margin-top: 8px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.25), transparent 45%),
    radial-gradient(circle at 80% 60%, rgba(239, 68, 68, 0.2), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(245, 158, 11, 0.15), transparent 50%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 158, 11, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 158, 11, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-content {
  max-width: 820px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease;
}
.hero h1 {
  font-size: clamp(40px, 9vw, 88px);
  font-weight: 900;
  margin: 20px 0 24px;
  letter-spacing: -0.03em;
}
.hero .lead {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 24px;
}
.hero-hint {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 2px solid var(--border-2);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.hero-scroll span {
  width: 4px; height: 8px;
  background: var(--accent-1);
  border-radius: 999px;
  animation: scrollDown 1.6s ease-in-out infinite;
}

@keyframes scrollDown {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 0.3; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ DEVICES ============ */
.devices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}
.device-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.device-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}
.device-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-lg);
}
.device-card > * { position: relative; z-index: 1; }
.device-card h3 { font-size: 22px; margin-bottom: 8px; }
.device-card p { color: var(--text-muted); font-size: 14px; }

.device-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 20px;
  background: var(--gradient);
  box-shadow: 0 8px 32px var(--accent-glow);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.device-icon::before {
  content: '';
  font-size: 32px;
}
.device-icon:not(.android)::before {
  content: '🍎';
}
.device-icon.android::before {
  content: '🤖';
}

/* ============ TECH ============ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all 0.3s ease;
}
.tech-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card-2);
}
.tech-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: inline-block;
  filter: drop-shadow(0 0 12px var(--accent-glow));
}
.tech-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.tech-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============ WHY ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.why-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-lg);
}
.why-card:hover::after { transform: scaleX(1); }
.why-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: inline-block;
  filter: drop-shadow(0 0 12px var(--accent-glow));
}
.why-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.why-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============ STEPS ============ */
.steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto 40px;
}
.step {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-lg);
}
.step-num {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  opacity: 0.5;
}
.step-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: inline-block;
  filter: drop-shadow(0 0 12px var(--accent-glow));
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-muted); }

.step-arrow {
  display: flex;
  align-items: center;
  font-size: 28px;
  color: var(--accent-1);
  font-weight: 300;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.steps-cta { text-align: center; }

/* ============ FAQ ============ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}
.faq-item[open] {
  border-color: var(--border-2);
  box-shadow: var(--shadow-lg);
}
.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--accent-1);
  font-weight: 300;
  transition: transform 0.3s;
  margin-left: 16px;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item summary:hover { color: var(--accent-2); }
.faq-answer {
  padding: 0 24px 22px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.65;
  animation: fadeInUp 0.3s ease;
}
.faq-answer b { color: var(--text); }

/* ============ CTA ============ */
.cta {
  position: relative;
  max-width: 1100px;
  margin: 40px auto 80px;
  padding: 80px 40px;
  border-radius: 32px;
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--border-2);
}
.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(245, 158, 11, 0.3), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(239, 68, 68, 0.25), transparent 50%),
    var(--bg-card);
  z-index: 0;
}
.cta-content {
  position: relative;
  z-index: 1;
}
.cta h2 {
  font-size: clamp(32px, 6vw, 56px);
  margin: 12px 0 20px;
}
.cta p {
  color: var(--text-soft);
  font-size: 17px;
  max-width: 480px;
  margin: 0 auto 36px;
}
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 24px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  text-align: center;
  margin-bottom: 32px;
}
.footer-top .brand {
  justify-content: center;
  margin-bottom: 12px;
}
.footer-top p {
  color: var(--text-muted);
  font-size: 15px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.footer-bottom small {
  color: var(--text-muted);
  font-size: 13px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .mobile-menu { display: flex; }

  .tech-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    flex-direction: column;
  }
  .step-arrow {
    transform: rotate(90deg);
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .section { padding: 70px 18px; }
  .header { padding: 12px 16px; }
  .btn-lg { padding: 16px 28px; font-size: 15px; }
  .btn-sm { padding: 8px 16px; font-size: 13px; }

  .hero { padding: 100px 18px 60px; min-height: auto; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; }

  .devices-grid,
  .tech-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .cta { margin: 20px 16px 60px; padding: 60px 24px; border-radius: 24px; }
  .cta-buttons { flex-direction: column; width: 100%; }
  .cta-buttons .btn { width: 100%; }

  .footer { padding: 40px 18px 30px; }

  .header-actions .btn-sm span:first-child { display: none; }
}

@media (max-width: 380px) {
  .header-actions .btn-sm { display: none; }
}

/* ============ SCROLL TOP BUTTON ============ */
.scroll-top {
  position: fixed;
  bottom: 96px;
  right: 28px;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px var(--accent-glow);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.scroll-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 40px var(--accent-glow), 0 0 40px var(--pink-glow);
}
.scroll-top:active {
  transform: translateY(-2px) scale(1);
}
.scroll-top span {
  line-height: 1;
  margin-top: -2px;
}

@media (max-width: 600px) {
  .scroll-top {
    bottom: 80px;
    right: 16px;
    width: 46px;
    height: 46px;
    font-size: 20px;
  }
}



/* ============ HINT SUB ============ */
.hint-sub {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
}
.hint-sub small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.8;
}
