/* ============================================
   Gluwiz — Premium Dark Landing Page
   ============================================ */

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

:root {
  --teal: rgb(0, 199, 165);
  --blue: rgb(0, 122, 255);
  --bg: rgb(5, 5, 15);
  --card-bg: rgb(20, 20, 36);
  --card-border: rgba(255, 255, 255, 0.06);
  --text: rgba(255, 255, 255, 0.92);
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-dim: rgba(255, 255, 255, 0.3);
  --gradient: linear-gradient(135deg, var(--teal), var(--blue));
  --radius: 16px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--blue);
}

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

/* --- Utility --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* --- Scroll Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.7; }
}

@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-on-scroll {
  animation: fadeUp 0.7s ease-out both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(5, 5, 15, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--card-border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-cta {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: var(--bg) !important;
  -webkit-text-fill-color: var(--bg) !important;
  background: var(--gradient);
  padding: 8px 20px;
  border-radius: 100px;
  transition: opacity 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: var(--bg) !important;
  -webkit-text-fill-color: var(--bg) !important;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 199, 165, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1120px;
  width: 100%;
}

.hero-content {
  animation: fadeUp 0.8s ease-out both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 199, 165, 0.1);
  border: 1px solid rgba(0, 199, 165, 0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-glow 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 8px;
}

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

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.5;
  max-width: 440px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gradient);
  color: var(--bg);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  color: var(--bg);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 100px;
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  color: var(--text);
}

/* --- Phone Mockup --- */
.hero-visual {
  display: flex;
  justify-content: center;
  animation: fadeUp 0.8s ease-out 0.2s both;
}

.phone-mockup {
  width: 280px;
  height: 560px;
  border-radius: 40px;
  background: var(--card-bg);
  border: 2px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 120px rgba(0, 199, 165, 0.08);
  animation: float 6s ease-in-out infinite;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: var(--bg);
  border-radius: 0 0 20px 20px;
  z-index: 2;
}

.phone-screen {
  position: absolute;
  inset: 12px;
  border-radius: 30px;
  background: linear-gradient(165deg, rgba(0, 199, 165, 0.15) 0%, rgba(0, 122, 255, 0.1) 40%, var(--bg) 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 44px 16px 16px;
  gap: 12px;
}

.phone-header {
  text-align: center;
  margin-bottom: 4px;
}

.phone-header-score {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.phone-header-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.phone-graph {
  flex: 1;
  position: relative;
  min-height: 100px;
}

.phone-graph-line {
  position: absolute;
  bottom: 20%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(0, 199, 165, 0.3);
}

.phone-graph-line::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(0, 199, 165, 0.15) 15%,
    rgba(0, 199, 165, 0.05) 30%,
    rgba(0, 199, 165, 0.2) 45%,
    rgba(0, 199, 165, 0.08) 60%,
    rgba(0, 199, 165, 0.18) 75%,
    rgba(0, 199, 165, 0.1) 90%,
    transparent 100%
  );
  border-radius: 8px;
  clip-path: polygon(
    0% 70%, 8% 55%, 16% 60%, 24% 40%, 32% 45%,
    40% 30%, 48% 35%, 56% 20%, 64% 25%, 72% 15%,
    80% 28%, 88% 22%, 96% 35%, 100% 30%,
    100% 100%, 0% 100%
  );
}

.phone-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.phone-stat {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}

.phone-stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal);
}

.phone-stat-label {
  font-size: 0.55rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* --- Features --- */
.features {
  padding: 100px 0 120px;
  position: relative;
}

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

.features .section-subtitle {
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 199, 165, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.feature-card:nth-child(2) .feature-icon {
  background: rgba(0, 122, 255, 0.1);
}

.feature-card:nth-child(3) .feature-icon {
  background: linear-gradient(135deg, rgba(0, 199, 165, 0.1), rgba(0, 122, 255, 0.1));
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 650;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- How It Works --- */
.how-it-works {
  padding: 100px 0 120px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 199, 165, 0.02) 50%, transparent 100%);
}

.how-it-works .section-header {
  text-align: center;
  margin-bottom: 72px;
}

.how-it-works .section-subtitle {
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-border) 20%, var(--card-border) 80%, transparent);
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.step-number::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  z-index: -1;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 260px;
  margin: 0 auto;
}

/* --- CTA / Beta Signup --- */
.cta {
  padding: 100px 0 120px;
}

.cta-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
}

.cta-card::after {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0, 199, 165, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.cta p {
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

.cta-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-form input {
  flex: 1;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}

.cta-form input::placeholder {
  color: var(--text-dim);
}

.cta-form input:focus {
  border-color: rgba(0, 199, 165, 0.4);
}

.cta-form button {
  padding: 14px 28px;
  background: var(--gradient);
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  font-family: var(--font);
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}

.cta-form button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* --- Footer --- */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--card-border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  font-size: 1.15rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
  max-width: 600px;
  line-height: 1.6;
}

.footer-bottom {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* --- Legal Pages --- */
.legal-page {
  padding: 120px 0 80px;
}

.legal-page .container {
  max-width: 720px;
}

.legal-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal-page .updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.legal-page h2 {
  font-size: 1.2rem;
  font-weight: 650;
  margin-top: 40px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.legal-page p,
.legal-page li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page li {
  margin-bottom: 6px;
}

.legal-page strong {
  color: var(--text);
  font-weight: 600;
}

.legal-page a {
  color: var(--teal);
}

.legal-page .emergency {
  background: rgba(255, 59, 48, 0.08);
  border: 1px solid rgba(255, 59, 48, 0.2);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 360px;
    margin: 0 auto;
  }

  .steps::before {
    display: none;
  }

  .nav-links .nav-link-text {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 100px 20px 60px;
  }

  .phone-mockup {
    width: 240px;
    height: 480px;
  }

  .cta-card {
    padding: 48px 24px;
  }

  .cta-form {
    flex-direction: column;
  }

  .cta-form button {
    width: 100%;
    justify-content: center;
  }

  .features {
    padding: 60px 0 80px;
  }

  .how-it-works {
    padding: 60px 0 80px;
  }

  .cta {
    padding: 60px 0 80px;
  }
}

/* --- SVG Icons (inline) --- */
.icon-chart,
.icon-brain,
.icon-flask {
  width: 24px;
  height: 24px;
}
