/* CrossWeave Website Styles */
/* Midnight dark theme with electric cyan accents */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=JetBrains+Mono:wght@400;500;600&family=DM+Serif+Display&display=swap');

:root {
  /* Brand Colors */
  --accent-cyan: #00D9FF;
  --accent-cyan-dim: #00B8E6;
  --accent-glow: rgba(0, 217, 255, 0.35);

  /* Backgrounds */
  --bg-primary: #0D1117;
  --bg-elevated: #161B22;
  --bg-card: #161B22;
  --bg-card-2: #1C232C;
  --bg-gradient: linear-gradient(135deg, #0D1117 0%, #161B22 50%, #0D1117 100%);

  /* Status Colors */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --gold: #FFD700;
  --gold-dim: #FFA500;
  --purple: #8B5CF6;

  /* Text */
  --text-primary: #F3F4F6;
  --text-secondary: #D1D5DB;
  --text-tertiary: #6B7280;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Typography */
  --font-main: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-serif: 'DM Serif Display', Georgia, serif;

  /* Effects */
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 0 40px rgba(0, 217, 255, 0.18);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);

  --grid-line: #374151;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient background glow */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 217, 255, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(139, 92, 246, 0.04), transparent),
    var(--bg-primary);
  pointer-events: none;
  z-index: -1;
}

/* Subtle grid texture, evoking the crossword */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
p  { color: var(--text-secondary); }
a  { color: var(--accent-cyan); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--text-primary); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-md); }
.container--narrow { max-width: 800px; }

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav__inner { display: flex; justify-content: space-between; align-items: center; }
.nav__logo {
  display: flex; align-items: center; gap: var(--space-sm);
  font-size: 1.25rem; font-weight: 700; color: var(--text-primary);
}
.nav__logo-icon { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.nav__links { display: flex; gap: var(--space-lg); list-style: none; }
.nav__links a { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; transition: var(--transition); }
.nav__links a:hover { color: var(--text-primary); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-main); font-size: 1rem; font-weight: 600;
  border: none; border-radius: var(--border-radius);
  cursor: pointer; transition: var(--transition);
  text-decoration: none;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-cyan-dim));
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(0, 217, 255, 0.3);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 217, 255, 0.4);
  color: var(--bg-primary);
}
.btn--secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn--secondary:hover {
  background: var(--bg-card-2);
  border-color: rgba(0, 217, 255, 0.3);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: calc(80px + var(--space-xl)) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
}
.hero__content {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-xl); align-items: center;
}
.hero__text { animation: fadeInUp 0.8s ease-out; }
.hero__tagline {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(0, 217, 255, 0.08);
  border: 1px solid rgba(0, 217, 255, 0.22);
  border-radius: 50px;
  font-size: 0.85rem; font-weight: 500;
  color: var(--accent-cyan);
  margin-bottom: var(--space-md);
}
.hero__title { margin-bottom: var(--space-md); }
.hero__title span {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-cyan-dim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__description { font-size: 1.25rem; margin-bottom: var(--space-lg); max-width: 500px; }
.hero__buttons { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

.hero__visual {
  position: relative;
  display: flex; justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero__device {
  position: relative;
  width: 280px; height: 580px;
  background: var(--bg-elevated);
  border-radius: 44px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.55),
    inset 0 0 0 2px rgba(255, 255, 255, 0.04);
}
.hero__device::before {
  content: '';
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 28px;
  background: #000; border-radius: 20px; z-index: 10;
}
.hero__device-img {
  position: absolute;
  inset: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  object-fit: cover;
  object-position: top center;
  border-radius: 40px;
  display: block;
}
/* Glow behind device */
.hero__glow {
  position: absolute;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.22), transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  animation: glow 4s ease-in-out infinite alternate;
}

/* In Action — real screenshots */
.in-action { padding: var(--space-2xl) 0; position: relative; }
.in-action__phase { margin-top: var(--space-xl); }
.in-action__phase:first-of-type { margin-top: var(--space-lg); }
.in-action__phase-title {
  text-align: center;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: var(--space-md);
}
.in-action__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
  justify-content: center;
  gap: var(--space-lg);
  max-width: 720px;
  margin: 0 auto;
}
.in-action__shot {
  margin: 0;
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-sm);
}
.in-action__shot img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.in-action__shot figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary, rgba(255,255,255,0.65));
  max-width: 260px;
  line-height: 1.45;
}
@media (max-width: 640px) {
  .in-action__grid { grid-template-columns: 1fr; }
  .in-action__shot img { max-width: 240px; }
}

/* Features */
.features { padding: var(--space-2xl) 0; position: relative; }
.section__header { text-align: center; margin-bottom: var(--space-xl); }
.section__subtitle {
  color: var(--accent-cyan);
  font-size: 0.9rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}
.section__title { margin-bottom: var(--space-md); }
.section__description { max-width: 600px; margin: 0 auto; }

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0; transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 217, 255, 0.22);
  box-shadow: var(--shadow-glow);
}
.feature-card:hover::before { opacity: 1; }
.feature-card__icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.18), rgba(0, 184, 230, 0.08));
  border-radius: var(--border-radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}
.feature-card__title { margin-bottom: var(--space-sm); }
.feature-card__description { font-size: 0.95rem; }

/* How It Works */
.how-it-works {
  padding: var(--space-2xl) 0;
  background: linear-gradient(180deg, transparent, rgba(22, 27, 34, 0.5), transparent);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 50px; left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-cyan-dim), var(--accent-cyan));
  opacity: 0.3;
}
.step { text-align: center; position: relative; }
.step__number {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-cyan-dim));
  color: var(--bg-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700;
  margin: 0 auto var(--space-md);
  position: relative; z-index: 1;
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.32);
}
.step__title { margin-bottom: var(--space-sm); }
.step__description { font-size: 0.95rem; max-width: 250px; margin: 0 auto; }

/* Difficulty Ladder */
.difficulty {
  padding: var(--space-2xl) 0;
}
.difficulty__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}
.diff-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.diff-card:hover { transform: translateY(-4px); }
.diff-card__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: var(--space-md);
}
.diff-card--easy   { border-color: rgba(16, 185, 129, 0.25); }
.diff-card--easy   .diff-card__badge { background: rgba(16, 185, 129, 0.12); color: var(--success); }
.diff-card--medium { border-color: rgba(245, 158, 11, 0.25); }
.diff-card--medium .diff-card__badge { background: rgba(245, 158, 11, 0.12); color: var(--warning); }
.diff-card--hard   { border-color: rgba(239, 68, 68, 0.25); }
.diff-card--hard   .diff-card__badge { background: rgba(239, 68, 68, 0.12); color: var(--error); }
.diff-card--expert { border-color: rgba(139, 92, 246, 0.25); }
.diff-card--expert .diff-card__badge { background: rgba(139, 92, 246, 0.12); color: var(--purple); }
.diff-card__title { font-size: 1.1rem; margin-bottom: 8px; }
.diff-card__meta {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  margin-bottom: var(--space-sm);
}
.diff-card__desc { font-size: 0.92rem; line-height: 1.5; }

/* CTA */
.cta { padding: var(--space-2xl) 0; }
.cta__card {
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta__card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.08), transparent 50%);
  animation: rotate 20s linear infinite;
}
.cta__content { position: relative; z-index: 1; }
.cta__title { margin-bottom: var(--space-sm); }
.cta__description { font-size: 1.1rem; margin-bottom: var(--space-lg); max-width: 500px; margin-left: auto; margin-right: auto; }

/* Footer */
.footer { padding: var(--space-xl) 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer__inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--space-md);
}
.footer__brand { display: flex; align-items: center; gap: var(--space-sm); }
.footer__logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.footer__copyright { font-size: 0.9rem; color: var(--text-tertiary); }
.footer__links { display: flex; gap: var(--space-lg); list-style: none; }
.footer__links a { color: var(--text-secondary); font-size: 0.9rem; transition: var(--transition); }
.footer__links a:hover { color: var(--accent-cyan); }
.footer__contact { text-align: right; }
.footer__contact-label { font-size: 0.8rem; color: var(--text-tertiary); margin-bottom: 4px; }
.footer__email { font-family: var(--font-mono); font-size: 0.9rem; color: var(--accent-cyan); }

/* Inner-page Header */
.page-header {
  padding: calc(80px + var(--space-xl)) 0 var(--space-xl);
  text-align: center;
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}
.page-header__title { margin-bottom: var(--space-sm); }
.page-header__description { font-size: 1.1rem; }

.content-section { padding: var(--space-xl) 0; }
.content-section h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.content-section h3 {
  font-size: 1.2rem;
  margin: var(--space-lg) 0 var(--space-sm);
  color: var(--accent-cyan);
}
.content-section p { margin-bottom: var(--space-md); }
.content-section ul, .content-section ol { margin-bottom: var(--space-md); padding-left: var(--space-lg); }
.content-section li { color: var(--text-secondary); margin-bottom: var(--space-sm); }

/* Contact card (support page) */
.contact-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  text-align: center;
}
.contact-card__icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-cyan-dim));
  color: var(--bg-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto var(--space-md);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.25);
}
.contact-card__title { margin-bottom: var(--space-sm); }
.contact-card__email {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent-cyan);
  display: block;
  margin-bottom: var(--space-md);
}
.contact-card__note { font-size: 0.9rem; color: var(--text-tertiary); }
.contact-card__list { text-align: left; display: inline-block; margin-top: var(--space-md); }
.contact-card__list li { color: var(--text-secondary); font-size: 0.95rem; }

/* FAQ */
.faq { margin-top: var(--space-xl); }
.faq__title { text-align: center; margin-bottom: var(--space-lg); }
.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-md);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover { border-color: rgba(0, 217, 255, 0.22); }
.faq-item__question {
  padding: var(--space-md);
  font-weight: 600;
  color: var(--text-primary);
  display: flex; align-items: center; gap: var(--space-sm);
}
.faq-item__question::before {
  content: 'Q';
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-cyan-dim));
  color: var(--bg-primary);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700;
  flex-shrink: 0;
}
.faq-item__answer {
  padding: 0 var(--space-md) var(--space-md);
  padding-left: calc(var(--space-md) + 28px + var(--space-sm));
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Legal */
.legal-content {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
}
.legal-content h2 {
  border-bottom: none;
  padding-bottom: 0;
  color: var(--accent-cyan);
  font-size: 1.3rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content .summary {
  background: rgba(0, 217, 255, 0.08);
  border-left: 3px solid var(--accent-cyan);
  padding: var(--space-md);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin-bottom: var(--space-lg);
}
.legal-content .summary p { margin-bottom: 0; color: var(--text-primary); }
.legal-content .caps { text-transform: uppercase; font-weight: 600; color: var(--text-primary); }
.legal-updated { font-size: 0.9rem; color: var(--text-tertiary); margin-bottom: var(--space-lg); }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse  { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes glow   { from { opacity: 0.5; transform: scale(1); } to { opacity: 0.85; transform: scale(1.08); } }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 1024px) {
  .hero__content { grid-template-columns: 1fr; text-align: center; }
  .hero__description { margin-left: auto; margin-right: auto; }
  .hero__buttons { justify-content: center; }
  .hero__visual { order: -1; margin-bottom: var(--space-lg); }
  .hero__device { width: 240px; height: 500px; }
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .steps { grid-template-columns: 1fr; gap: var(--space-xl); }
  .steps::before { display: none; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__contact { text-align: center; }
  .features__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  :root { --space-lg: 2rem; --space-xl: 3rem; --space-2xl: 4rem; }
  .hero__device { width: 200px; height: 420px; }
  .btn { width: 100%; justify-content: center; }
  .hero__buttons { flex-direction: column; }
}

/* App Store Badge */
.app-store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 28px 12px 20px;
  background: #000;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  transition: var(--transition);
  text-decoration: none;
}
.app-store-btn:hover {
  background: #111;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  transform: scale(1.02);
}
.app-store-btn__icon { width: 42px; height: 42px; flex-shrink: 0; margin-top: -2px; }
.app-store-btn__text { text-align: left; line-height: 1.15; }
.app-store-btn__text span {
  display: block;
  font-size: 12px; font-weight: 400; letter-spacing: 0.01em;
  color: #fff; margin-bottom: 2px;
}
.app-store-btn__text strong {
  display: block;
  font-size: 26px; font-weight: 500; letter-spacing: -0.02em;
  color: #fff;
}
