:root {
  --bg: #f7f9fc;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --text: #0e1a2b;
  --text-muted: #5e6b80;
  --border: #e5ebf3;
  --accent: #00bfff;
  --accent-hover: #0099cc;
  --accent-soft: #e6f7ff;
  --shadow-sm: 0 1px 2px rgba(15, 30, 60, 0.04), 0 2px 8px rgba(15, 30, 60, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 30, 60, 0.06), 0 12px 32px rgba(15, 30, 60, 0.06);
  --shadow-lg: 0 16px 48px rgba(15, 30, 60, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

code {
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  font-size: 0.92em;
  background: var(--accent-soft);
  color: var(--text);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ============ Header ============ */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.brand-name {
  font-size: 18px;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
  color: var(--text-muted);
}

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

@media (max-width: 768px) {
  .nav {
    display: none;
  }
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 6px 20px rgba(0, 191, 255, 0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 191, 255, 0.45);
}

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

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--text-muted);
}

/* ============ Hero ============ */

.hero {
  padding: 80px 0 100px;
  overflow: hidden;
  background: radial-gradient(ellipse 60% 50% at 100% 0%, rgba(0, 191, 255, 0.08), transparent 70%),
              radial-gradient(ellipse 60% 50% at 0% 30%, rgba(0, 191, 255, 0.06), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero {
    padding: 60px 0 80px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

.hero-line-1 {
  display: block;
}

.hero-line-2 {
  display: block;
  background: linear-gradient(135deg, var(--accent) 0%, #4fc3f7 50%, #81d4fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-size: 19px;
  color: var(--text-muted);
  margin: 0 0 36px;
  max-width: 520px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .hero-actions {
    justify-content: center;
  }
}

.hero-note {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

/* ============ Phone Mockup ============ */

.phone-mockup {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(145deg, #1a2332, #2a3441);
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    var(--shadow-lg),
    inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  background: var(--bg-alt);
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #0e1a2b;
  border-radius: 16px;
  z-index: 2;
}

.phone-label {
  position: absolute;
  bottom: -32px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

/* ============ Sections ============ */

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 56px;
}

/* ============ Features ============ */

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

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.feature-icon {
  font-size: 32px;
  width: 56px;
  height: 56px;
  background: var(--accent-soft);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

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

/* ============ Screenshots ============ */

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 32px;
}

@media (max-width: 900px) {
  .screenshots-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

/* ============ Stack ============ */

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

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

.stack-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
}

.stack-block h4 {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.stack-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stack-block li {
  padding: 8px 0;
  font-size: 15px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.stack-block li:last-child {
  border-bottom: none;
}

.stack-block li strong {
  color: var(--text);
  font-weight: 600;
}

/* ============ CTA Section ============ */

.cta-section {
  background: linear-gradient(135deg, #0e1a2b, #1a2942);
  color: white;
}

.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.cta-section p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 36px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-section .btn-ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

.cta-section .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ============ Footer ============ */

.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 15px;
  color: var(--text-muted);
}

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

.footer-meta {
  font-size: 14px;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
