/* ==========================================================================
   STILL SUDOKU — MASTER DESIGN SYSTEM
   Framework: UI/UX Pro Max + Taste Skill (Awwwards-Tier Anti-Slop)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Surface & Canvas Tokens */
  --bg-canvas: #f8fafc;
  --bg-card-shell: #f1f5f9;
  --bg-card-core: #ffffff;
  --bg-elevated: #ffffff;
  --bg-subtle: #f8fafc;
  
  /* Text & Contrast Tokens (WCAG AA Compliant 4.5:1+) */
  --text-primary: #090d16;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  /* Accent & Gradients */
  --accent-primary: #4f46e5;
  --accent-secondary: #7c3aed;
  --accent-cyan: #0284c7;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
  --accent-gradient-subtle: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(124, 58, 237, 0.05) 100%);

  /* Borders & Hairlines */
  --border-shell: #e2e8f0;
  --border-core: #f1f5f9;
  --border-highlight: rgba(255, 255, 255, 0.8);
  --border-focus: rgba(79, 70, 229, 0.35);

  /* Shadows (Tinted Soft Ambient) */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  --shadow-hover: 0 20px 35px -5px rgba(15, 23, 42, 0.08), 0 8px 16px -4px rgba(15, 23, 42, 0.03);
  --shadow-button: 0 4px 14px rgba(79, 70, 229, 0.25);

  /* Geometry & Physics */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-2xl: 2.25rem;
  --radius-full: 9999px;
  
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms var(--ease-spring);
  --transition-normal: 250ms var(--ease-spring);
  --transition-smooth: 400ms var(--ease-spring);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(99, 102, 241, 0.035) 0%, transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(236, 72, 153, 0.03) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(2, 132, 199, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

p {
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 1.05rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

/* Container Scale (1400px Full-Width) */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container, .container-narrow {
    padding: 0 1.25rem;
  }
}

/* ==========================================================================
   NAVIGATION (Floating Glass Island)
   ========================================================================== */
.navbar-wrapper {
  position: sticky;
  top: 1.25rem;
  z-index: 100;
  width: 100%;
  padding: 0 1.5rem;
}

.navbar {
  max-width: 1320px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06);
  padding: 0.65rem 1.25rem;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.brand-icon svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.35rem 0.2rem;
  position: relative;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Responsive Nav */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}

/* ==========================================================================
   BUTTONS (Tactile & Button-In-Button Architecture)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-normal);
  line-height: 1;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid var(--border-shell);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* App Store & Play Store Official Badge Buttons */
.btn-appstore, .btn-playstore {
  background: #090d16;
  color: #ffffff;
  border: 1px solid #1e293b;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 14px rgba(9, 13, 22, 0.25);
  text-align: left;
}

.btn-appstore:hover, .btn-playstore:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(9, 13, 22, 0.35);
}

.btn-appstore svg, .btn-playstore svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn-appstore svg {
  fill: #ffffff;
}

.btn-appstore-text {
  display: flex;
  flex-direction: column;
}

.btn-appstore-sub {
  font-size: 0.62rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  line-height: 1;
}

.btn-appstore-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

/* ==========================================================================
   DOUBLE-BEZEL CONTAINER (Doppelrand Architecture)
   ========================================================================== */
.double-bezel {
  background: var(--bg-card-shell);
  border: 1px solid var(--border-shell);
  border-radius: var(--radius-2xl);
  padding: 0.65rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition-normal);
}

.double-bezel-inner {
  background: var(--bg-card-core);
  border: 1px solid var(--border-core);
  border-radius: calc(var(--radius-2xl) - 0.65rem);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.double-bezel:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

/* ==========================================================================
   MICRO-COMPONENTS (Badges, Eyebrows, Metrics)
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid var(--border-shell);
  color: var(--accent-primary);
  box-shadow: var(--shadow-sm);
  width: fit-content;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
  animation: pulse-emerald 2s infinite ease-in-out;
}

@keyframes pulse-emerald {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

.metric-pill-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.metric-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.metric-pill svg {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

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

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* Hero Showcase Visual */
.hero-visual-card {
  position: relative;
}

.hero-visual-media {
  border-radius: calc(var(--radius-2xl) - 0.65rem);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.hero-visual-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ==========================================================================
   BENTO GRID SHOWCASE
   ========================================================================== */
.section-padding {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.col-span-8 { grid-column: span 8; }
.col-span-4 { grid-column: span 4; }
.col-span-6 { grid-column: span 6; }
.col-span-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .col-span-8, .col-span-4, .col-span-6, .col-span-12 {
    grid-column: span 1;
  }
}

.bento-card-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.bento-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--accent-gradient-subtle);
  border: 1px solid rgba(79, 70, 229, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-primary);
}

.bento-icon-wrapper svg {
  width: 26px;
  height: 26px;
}

.bento-card-title {
  font-size: 1.4rem;
  margin-bottom: 0.65rem;
}

.bento-card-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   INTERACTIVE THEME PREVIEWER
   ========================================================================== */
.theme-preview-box {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: #f8fafc;
  border: 1px solid var(--border-shell);
}

.theme-pill-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.theme-pill-btn {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-shell);
  background: #ffffff;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.theme-pill-btn.active, .theme-pill-btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
}

/* ==========================================================================
   DOWNLOAD PLATFORM CARDS
   ========================================================================== */
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

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

.platform-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.specs-table {
  width: 100%;
  margin: 1.5rem 0 2rem;
  font-size: 0.92rem;
}

.specs-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--border-shell);
}

.specs-row:last-child {
  border-bottom: none;
}

.specs-label {
  color: var(--text-muted);
}

.specs-val {
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* ==========================================================================
   SUPPORT & CONTACT FORM (Apple 1.5 Review Compliant)
   ========================================================================== */
.support-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.5rem;
}

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

.info-channel-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.info-channel-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-gradient-subtle);
  border: 1px solid rgba(79, 70, 229, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.channel-icon svg {
  width: 20px;
  height: 20px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-shell);
  background: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
}

.faq-card {
  background: #ffffff;
  border: 1px solid var(--border-shell);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.faq-card:hover {
  border-color: #cbd5e1;
}

.faq-trigger {
  width: 100%;
  padding: 1.35rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  width: 22px;
  height: 22px;
  transition: transform var(--transition-normal);
  color: var(--accent-primary);
}

.faq-card.open .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms var(--ease-spring), padding 300ms var(--ease-spring);
  padding: 0 1.75rem;
  color: var(--text-secondary);
}

.faq-card.open .faq-content {
  max-height: 350px;
  padding: 0 1.75rem 1.5rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-wrap {
  margin-top: auto;
  border-top: 1px solid var(--border-shell);
  background: #ffffff;
  padding: 5rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

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

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

.footer-title {
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-list a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-list a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-core);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
