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

:root {
  --primary: #10B981;
  --primary-dark: #059669;
  --primary-light: #34D399;
  --accent: #6EE7B7;
  --bg: #0A0A0A;
  --bg-alt: #111111;
  --card-bg: #161616;
  --card-border: #222222;
  --text: #E4E4ED;
  --text-muted: #9CA3AF;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.5em; }
li { margin-bottom: 0.5em; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 800px; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

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

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

/* ── Navigation ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
}

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

.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 800; color: var(--white);
}

.logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 900; color: var(--white);
}

.nav-links {
  display: flex; align-items: center; gap: 28px;
}

.nav-links a {
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--text);
  transition: var(--transition);
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); flex-direction: column; padding: 24px;
    border-bottom: 1px solid var(--card-border); gap: 16px;
  }
  .nav-links.open { display: flex; }
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 50px; font-weight: 600; font-size: 0.95rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white); border: none; cursor: pointer;
  transition: all var(--transition); text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4); color: var(--white); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-light);
  color: var(--primary-light);
}
.btn-outline:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative; padding: 140px 0 80px; text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
}

/* ── Split hero (video on right, crayoclips style) ─────────────────────── */
.hero-split {
  position: relative;
  min-height: 100vh;
  padding: 120px 0 80px;
  overflow: hidden;
  text-align: left;
  background: var(--bg);
}

/* Animated gradient orbs */
.hero-split::before,
.hero-split::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  animation: orbFloat 20s ease-in-out infinite;
  pointer-events: none;
}
.hero-split::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: -200px; left: -100px;
}
.hero-split::after {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #059669 0%, transparent 70%);
  bottom: -150px; right: -100px;
  animation-delay: -10s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* Grain texture overlay */
.hero-grain {
  position: absolute; inset: 0; z-index: 1;
  opacity: 0.03; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 128px;
}

.hero-split-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: calc(100vh - 200px);
}

.hero-split-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-split-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 16px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--primary-light);
  width: fit-content;
  margin-bottom: 24px;
}

.hero-split-text h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900; line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--white) 0%, #6EE7B7 50%, #34D399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-split-text .hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 480px;
}

.hero-split-text .hero-cta {
  justify-content: flex-start;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex; gap: 32px; flex-wrap: wrap;
}

.hero-stat {
  display: flex; flex-direction: column;
}
.hero-stat-num {
  font-size: 1.6rem; font-weight: 800; color: var(--white);
  line-height: 1.2;
}
.hero-stat-label {
  font-size: 0.8rem; color: var(--text-muted); font-weight: 500;
}

/* Video container - right side */
.hero-video-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-video-frame {
  position: relative;
  width: 300px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5),
              0 0 60px rgba(16, 185, 129, 0.15);
}

/* Gradient border effect */
.hero-video-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--primary), #059669, var(--primary-light));
  z-index: -1;
}

.hero-video-frame video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
}

/* Glow behind video */
.hero-video-glow {
  position: absolute;
  width: 340px; height: 340px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

@media (max-width: 1000px) {
  .hero-split-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-split-text .hero-cta { justify-content: center; }
  .hero-split-text .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-stats { justify-content: center; }
  .hero-split-badge { margin-left: auto; margin-right: auto; }
  .hero-video-container { order: -1; }
  .hero-video-frame { width: 260px; }
}

/* Old centered hero for subpages */
.hero-content { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 900; line-height: 1.1;
  color: var(--white); margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--text-muted); max-width: 620px;
  margin: 0 auto 32px;
}

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

.hero-badges {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 32px;
}

.badge {
  background: var(--card-bg); border: 1px solid var(--card-border);
  padding: 6px 16px; border-radius: 50px; font-size: 0.8rem;
  color: var(--text-muted); font-weight: 500;
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: 2rem; font-weight: 800; color: var(--white);
  text-align: center; margin-bottom: 48px;
}

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 32px;
  transition: all var(--transition);
}
.card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }

.card-icon { font-size: 2rem; margin-bottom: 16px; }

.card h3 { font-size: 1.15rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.card-link {
  display: inline-block; margin-top: 12px; font-size: 0.9rem;
  color: var(--primary-light); font-weight: 600;
}

/* ── Steps ──────────────────────────────────────────────────────────────── */
.step-card {
  text-align: center; padding: 32px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius);
}

.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white); font-weight: 800; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}

.step-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: 0.9rem; }

.steps-detailed { display: flex; flex-direction: column; gap: 32px; max-width: 700px; margin: 0 auto; }
.step-detail { display: flex; gap: 24px; align-items: flex-start; }
.step-num-lg {
  min-width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white); font-weight: 800; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
}
.step-detail h3 { color: var(--white); margin-bottom: 8px; }
.step-detail p { color: var(--text-muted); }

/* ── Pricing ────────────────────────────────────────────────────────────── */
.pricing-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 40px 32px; text-align: center;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.2);
  transform: scale(1.03);
}

.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: var(--white); padding: 4px 20px;
  border-radius: 50px; font-size: 0.8rem; font-weight: 700;
}

.pricing-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }

.price { font-size: 3rem; font-weight: 900; color: var(--white); }
.price-period { color: var(--text-muted); margin-bottom: 24px; }

.pricing-features {
  list-style: none; padding: 0; margin-bottom: 32px; text-align: left;
}
.pricing-features li {
  padding: 8px 0; border-bottom: 1px solid var(--card-border);
  color: var(--text); font-size: 0.95rem;
}
.pricing-features li::before { content: '✓ '; color: var(--primary-light); font-weight: 700; }

/* ── Accents ────────────────────────────────────────────────────────────── */
.accent-grid, .accent-grid-full {
  display: grid; gap: 16px;
}
.accent-grid { grid-template-columns: repeat(4, 1fr); }
.accent-grid-full { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 700px) {
  .accent-grid { grid-template-columns: repeat(2, 1fr); }
  .accent-grid-full { grid-template-columns: 1fr; }
}

.accent-card, .accent-card-full {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-radius: var(--radius-sm);
  background: var(--card-bg); border: 1px solid var(--card-border);
  color: var(--text); transition: all var(--transition);
  text-decoration: none;
}
.accent-card:hover, .accent-card-full:hover {
  border-color: var(--primary); transform: translateY(-2px);
  color: var(--white);
}

.accent-flag { font-size: 1.5rem; }
.accent-card-full { padding: 24px; }
.accent-card-full h3 { color: var(--white); font-size: 1rem; margin-bottom: 4px; }
.accent-card-full p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

/* ── Comparison Table ───────────────────────────────────────────────────── */
.comparison-table { overflow-x: auto; }
.comparison-table table {
  width: 100%; border-collapse: collapse;
  background: var(--card-bg); border-radius: var(--radius);
  overflow: hidden;
}
.comparison-table th, .comparison-table td {
  padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--card-border);
}
.comparison-table th {
  background: var(--bg-alt); color: var(--text-muted); font-size: 0.85rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.comparison-table td { color: var(--text); font-size: 0.95rem; }
.comparison-table .highlight { background: rgba(16, 185, 129, 0.1); }
.comparison-table .highlight td { color: var(--white); font-weight: 600; }

/* ── Blog ───────────────────────────────────────────────────────────────── */
.blog-card {
  display: block; background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 32px;
  transition: all var(--transition); text-decoration: none;
}
.blog-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 8px; }
.blog-card p { color: var(--text-muted); font-size: 0.9rem; }

.blog-cat {
  display: inline-block; background: rgba(16, 185, 129, 0.2);
  color: var(--primary-light); padding: 4px 12px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 600; margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-sm); overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px; cursor: pointer; font-weight: 600; color: var(--white);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--primary-light); }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { border-bottom: 1px solid var(--card-border); }
.faq-item p { padding: 20px 24px; color: var(--text-muted); }

/* ── CTA Banner ─────────────────────────────────────────────────────────── */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.cta-inner {
  text-align: center;
}
.cta-inner h2 { font-size: 2rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.cta-inner p { color: rgba(255,255,255,0.8); margin-bottom: 28px; font-size: 1.1rem; }
.cta-inner .btn {
  background: var(--white); color: var(--primary-dark); font-weight: 700;
}
.cta-inner .btn:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.3); }

/* ── Article / Content ──────────────────────────────────────────────────── */
.article { padding-top: 120px; }
.article h1 { font-size: 2.2rem; font-weight: 800; color: var(--white); margin-bottom: 16px; }
.article h2 { font-size: 1.5rem; font-weight: 700; color: var(--white); margin: 40px 0 16px; }
.article h3 { font-size: 1.2rem; font-weight: 700; color: var(--white); margin: 28px 0 12px; }
.article p { margin-bottom: 16px; color: var(--text); }
.article .large { font-size: 1.15rem; color: var(--text-muted); line-height: 1.8; }
.article ul, .article ol { margin-bottom: 20px; }
.article li { color: var(--text); }

.feature-detail { margin-bottom: 32px; padding: 24px; background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--card-border); }
.feature-detail h3 { margin-top: 0; }
.feature-detail p { margin-bottom: 0; color: var(--text-muted); }

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb {
  padding: 90px 0 0; font-size: 0.85rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb span { color: var(--text-muted); margin: 0 6px; }

/* ── Changelog ──────────────────────────────────────────────────────────── */
.changelog-entry {
  padding: 24px; margin-bottom: 20px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius);
}
.changelog-entry h3 { color: var(--white); margin-bottom: 4px; }
.changelog-entry .date { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 12px; }
.changelog-entry .tag {
  background: var(--primary); color: var(--white); padding: 2px 10px;
  border-radius: 50px; font-size: 0.7rem; font-weight: 600;
  vertical-align: middle;
}

/* ── Download ───────────────────────────────────────────────────────────── */
.device-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 32px 0; }
.device-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 24px; text-align: center;
}
.device-card span { font-size: 2rem; margin-bottom: 8px; display: block; }
.device-card h4 { color: var(--white); margin-bottom: 4px; }
.device-card p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

@media (max-width: 700px) {
  .device-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Contact ────────────────────────────────────────────────────────────── */
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 700px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-cards .card h3 { margin-bottom: 8px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  padding: 64px 0 32px;
  background: var(--bg-alt);
  border-top: 1px solid var(--card-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}

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

.footer-brand p { color: var(--text-muted); margin-top: 12px; font-size: 0.9rem; }

.footer h4 { color: var(--white); font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }

.footer ul { list-style: none; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer li a { color: var(--text-muted); font-size: 0.9rem; }
.footer li a:hover { color: var(--primary-light); }

.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--card-border);
  text-align: center;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }

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

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