/* BakalSnap - Minimalist White, Green & Black Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8faf9;
  --bg-card: #ffffff;
  --border-color: #e5e7eb;
  --border-light: #d1d5db;
  --border-dark: #111827;

  /* BakalSnap Emerald Green Palette */
  --green-primary: #0fa867;
  --green-hover: #0c8a54;
  --green-dark: #074e38;
  --green-light: #e8f8f0;
  --green-border: #a7f3d0;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --btn-bg: #0fa867;
  --btn-text: #ffffff;
  --btn-hover-bg: #0c8a54;
  --container-max-width: 1200px;
  
  /* Modern Typography Hierarchy */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --font-family: var(--font-body);

  --transition-fast: 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
}

code, kbd, samp, pre {
  font-family: var(--font-mono);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: block;
  object-fit: contain;
}

/* Hero-to-Navbar Brand Transition (Homepage only) */
.has-hero-transition .site-header .logo {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.has-hero-transition .site-header.nav-scrolled .logo,
body.mobile-menu-active .has-hero-transition .site-header .logo {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

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

.nav-links a {
  font-family: var(--font-heading);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  font-family: var(--font-heading);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  border-radius: 8px;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--btn-bg);
  color: var(--btn-text);
  border: 1px solid var(--btn-bg);
}

.btn-primary:hover {
  background-color: var(--btn-hover-bg);
  border-color: var(--btn-hover-bg);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 168, 103, 0.28);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-dark);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  background-color: rgba(0, 0, 0, 0.04);
}

.btn-nav {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Hero Section */
.hero {
  padding: 5rem 0 5.5rem;
  border-bottom: 1px solid var(--border-color);
  background: radial-gradient(ellipse 60% 50% at 85% 35%, rgba(15, 168, 103, 0.08), transparent 70%), var(--bg-primary);
}

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

.hero-content {
  text-align: left;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 1.5rem;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.hero-brand.hero-brand-docked {
  opacity: 0;
  transform: translateY(-8px);
}

.hero-brand .hero-icon-wrapper {
  margin-bottom: 0;
}

.hero-brand-name {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
}

.hero-icon-wrapper {
  display: inline-flex;
  margin-bottom: 1.25rem;
}

.hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  display: block;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.download-btn-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.download-subtext {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a.download-subtext:hover {
  color: var(--green-primary);
  text-decoration: underline;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.highlight-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
}

.highlight-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--green-primary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Phone Mockup & 3D Interactive Box */
.hero-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-interactive-box {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 370px;
  padding: 2.75rem 2.25rem;
  background: transparent;
  border: none;
  box-shadow: none;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.phone-interactive-box:hover {
  background: transparent;
  border: none;
  box-shadow: none;
}

.phone-frame {
  position: relative;
  width: 100%;
  max-width: 290px;
  background-color: #0b0f19;
  border: 4px solid #1f2937;
  border-radius: 46px;
  padding: 10px;
  box-shadow:
    0 25px 60px -12px rgba(0, 0, 0, 0.25),
    0 12px 28px -6px rgba(0, 0, 0, 0.15);
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.phone-screen {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  background-color: #000000;
  line-height: 0;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.3);
}

.phone-glare {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.08) 45%, transparent 70%);
  opacity: 0;
  mix-blend-mode: overlay;
  transition: opacity 0.3s ease;
  border-radius: 36px;
  z-index: 2;
}

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

/* Details / Features Section */
.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  background-color: var(--green-light);
  border: 1px solid var(--green-border);
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--green-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 168, 103, 0.12);
}

.card-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-feature-settings: "tnum" 1;
  color: var(--green-primary);
  margin-bottom: 1rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* CTA Download Section */
.cta-section {
  padding: 5rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(232, 248, 240, 0.5) 100%);
}

.cta-box {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.cta-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Blank Pages (Privacy, Terms, Contact) */
.page-container {
  flex: 1;
  padding: 4rem 0 6rem;
  background-color: var(--bg-primary);
}

.page-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.page-meta {
  color: #475569;
  font-size: 0.95rem;
  font-weight: 500;
}

.blank-content {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-secondary);
  border: 1px dashed var(--border-light);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  color: var(--text-muted);
}

.blank-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.blank-content span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Legal Pages (Privacy Policy & Terms of Service) */
.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: 6rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
}

.legal-toc-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #334155;
  margin-bottom: 1rem;
}

.legal-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.legal-toc-list a {
  color: #334155;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  display: block;
  transition: all var(--transition-fast);
}

.legal-toc-list a:hover {
  color: #047857;
  background-color: #ecfdf5;
  font-weight: 600;
}

.legal-body {
  min-width: 0;
}

/* High-Contrast Summary Box */
.legal-summary-box {
  background-color: #f0fdf4;
  border: 1.5px solid #a7f3d0;
  border-radius: 12px;
  padding: 1.85rem;
  margin-bottom: 2.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.legal-summary-box h3 {
  color: #064e3b;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}

.legal-summary-box p {
  color: #14532d;
  font-size: 1.05rem;
  font-weight: 450;
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.legal-summary-box p:last-child {
  margin-bottom: 0;
}

.legal-summary-box ul {
  margin: 0.75rem 0 0.5rem 1.35rem;
  color: #14532d;
  font-size: 1.025rem;
  line-height: 1.75;
}

.legal-summary-box li {
  margin-bottom: 0.5rem;
}

.legal-summary-box strong {
  color: #052e16;
  font-weight: 700;
}

/* Sections & High-Contrast Typography */
.legal-section {
  scroll-margin-top: 6rem;
  margin-bottom: 2.75rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.legal-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.legal-section h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 1.15rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.legal-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 1.85rem 0 0.85rem;
}

.legal-section p {
  color: #1e293b;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.75;
  margin-bottom: 1.15rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section strong {
  color: #0f172a;
  font-weight: 700;
}

.legal-section a {
  color: #047857;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.legal-section a:hover {
  color: #065f46;
}

.legal-section ul,
.legal-section ol {
  margin: 0.85rem 0 1.35rem 1.6rem;
  color: #1e293b;
  font-size: 1.05rem;
  line-height: 1.75;
}

.legal-section li {
  margin-bottom: 0.65rem;
}

.legal-section li:last-child {
  margin-bottom: 0;
}

/* Callout Banners */
.legal-callout {
  border-radius: 10px;
  padding: 1.35rem 1.5rem;
  margin: 1.5rem 0;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 5px solid #0fa867;
}

.legal-callout p {
  color: #0f172a;
  font-size: 1.025rem;
  font-weight: 500;
  line-height: 1.7;
  margin: 0;
}

.legal-callout strong {
  color: #0f172a;
  font-weight: 700;
}

.legal-callout.warning {
  background-color: #fffbeb;
  border: 1px solid #fcd34d;
  border-left: 5px solid #d97706;
}

.legal-callout.warning p {
  color: #78350f;
  font-size: 1.025rem;
  font-weight: 500;
}

.legal-callout.warning strong {
  color: #451a03;
  font-weight: 800;
}

/* Contact Card */
.legal-contact-card {
  background-color: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 1.75rem;
  margin-top: 1.5rem;
}

.legal-contact-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  font-size: 1.05rem;
  color: #1e293b;
}

.legal-contact-item:last-child {
  margin-bottom: 0;
}

.legal-contact-item strong {
  color: #0f172a;
  min-width: 110px;
  font-weight: 700;
}

.legal-contact-item a {
  color: #047857;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-contact-item a:hover {
  color: #065f46;
}

@media (max-width: 991px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .legal-sidebar {
    position: relative;
    top: 0;
    max-height: none;
  }
}

/* Footer */
.site-footer {
  margin-top: auto;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

/* Mobile Responsive */
@media (max-width: 991px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .legal-sidebar {
    position: relative;
    top: 0;
    max-height: none;
  }
}

@media (max-width: 880px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-content {
    text-align: center;
    margin: 0 auto;
    max-width: 620px;
  }

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

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

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

  .phone-interactive-box {
    margin: 0 auto;
    padding: 1.5rem 1rem;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    z-index: 101;
    touch-action: manipulation;
  }

  .nav-links {
    position: absolute;
    top: 4.5rem;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 1rem 1.25rem 1.5rem;
    gap: 0.35rem;
    display: none;
    animation: navSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes navSlideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background-color var(--transition-fast), color var(--transition-fast);
  }

  .nav-links a:hover,
  .nav-links a.active {
    background-color: var(--green-light);
    color: var(--green-dark);
    font-weight: 600;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .page-container {
    padding: 2.75rem 0 4rem;
  }

  .page-title {
    font-size: 1.85rem;
  }

  .page-header {
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
  }

  .legal-sidebar {
    padding: 1.25rem;
    border-radius: 12px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
  }
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    text-align: left;
  }
}

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

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero-brand {
    margin-bottom: 1.25rem;
    gap: 0.85rem;
  }

  .hero-icon {
    width: 58px;
    height: 58px;
    border-radius: 15px;
  }

  .hero-brand-name {
    font-size: 1.7rem;
  }

  .hero-title {
    font-size: clamp(1.85rem, 7.5vw, 2.35rem);
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .download-btn-wrapper {
    width: 100%;
    max-width: 320px;
  }

  .download-btn-wrapper .btn {
    width: 100%;
  }

  .hero-actions .btn-outline {
    width: 100%;
    max-width: 320px;
  }

  .btn {
    min-height: 48px;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
  }

  .hero-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.6rem;
    padding-top: 0.75rem;
    border-top: none;
    margin-top: 0.25rem;
  }

  .highlight-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--green-light);
    color: var(--green-dark);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.825rem;
    font-weight: 500;
  }

  .highlight-check {
    background-color: var(--green-primary);
    color: #ffffff;
    width: 16px;
    height: 16px;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
  }

  .phone-interactive-box {
    max-width: 270px;
    padding: 0.75rem 0;
    margin: 1.5rem auto 0;
  }

  .phone-frame {
    max-width: 250px;
    border-radius: 38px;
    border-width: 3.5px;
    padding: 7px;
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.22);
  }

  .phone-screen {
    border-radius: 30px;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.65rem;
    line-height: 1.25;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .card-number {
    margin-bottom: 0.75rem;
  }

  .card-title {
    font-size: 1.15rem;
  }

  .card-desc {
    font-size: 0.925rem;
    line-height: 1.55;
  }

  .cta-section {
    padding: 3.5rem 0;
  }

  .cta-title {
    font-size: 1.65rem;
    line-height: 1.25;
  }

  .cta-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .cta-box .download-btn-wrapper {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .cta-box .download-btn-wrapper .btn {
    width: 100%;
  }

  .site-footer {
    padding: 2.25rem 0;
  }

  .footer-inner {
    gap: 1.25rem;
  }

  .footer-nav {
    gap: 0.75rem 1.25rem;
  }

  .footer-nav a {
    font-size: 0.9rem;
  }

  .copyright {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .legal-contact-card {
    padding: 1.25rem;
  }

  .legal-contact-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    word-break: break-word;
    font-size: 0.95rem;
  }

  .legal-contact-item strong {
    min-width: unset;
  }
}

@media (max-width: 380px) {
  .container {
    padding: 0 1rem;
  }

  .hero-brand-name {
    font-size: 1.55rem;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .phone-frame {
    max-width: 235px;
  }
}

/* ==========================================================================
   Updates & Changelog Styles
   ========================================================================== */
.updates-container {
  max-width: 820px;
  margin: 0 auto;
}

.updates-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.updates-hero-text {
  display: flex;
  flex-direction: column;
}

.version-series-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
}

.series-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.95rem;
  border: none;
  border-radius: 9999px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.series-toggle-btn:hover {
  color: var(--text-primary);
}

.series-toggle-btn.active {
  background-color: var(--bg-card);
  color: var(--green-primary);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.series-soon-tag {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.1rem 0.42rem;
  border-radius: 9999px;
  background-color: var(--green-light);
  color: var(--green-dark);
}

.series-toggle-btn.active .series-soon-tag {
  background-color: var(--green-light);
  color: var(--green-dark);
}

.version-beta-suffix {
  font-weight: 400;
  color: var(--text-muted);
  opacity: 0.72;
}

.release-version .version-beta-suffix {
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.carousel-dot-label .version-beta-suffix,
.spec-value .version-beta-suffix {
  font-weight: 400;
  opacity: 0.68;
}

.v2-upcoming-panel {
  margin-top: 0.25rem;
}

.v2-upcoming-card {
  background-color: var(--bg-card);
  border: 1px dashed var(--border-light);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.v2-upcoming-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.v2-upcoming-summary {
  max-width: 480px;
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.v2-upcoming-actions {
  margin-top: 0.4rem;
}

.updates-carousel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.updates-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.35rem 0;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  flex-wrap: wrap;
}

.carousel-dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.carousel-dot:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateY(-50%);
  width: calc(100% + 2.25rem);
  height: 2px;
  background-color: var(--border-color);
  z-index: 0;
  pointer-events: none;
}

.carousel-dot-node {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border-dark);
  background-color: var(--bg-card);
  transition: all var(--transition-fast);
}

.carousel-dot-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-secondary);
  white-space: nowrap;
  pointer-events: none;
  transition: color var(--transition-fast);
}

.carousel-dot:nth-child(odd) .carousel-dot-label {
  bottom: calc(100% + 0.3rem);
  top: auto;
}

.carousel-dot:nth-child(even) .carousel-dot-label {
  top: calc(100% + 0.3rem);
  bottom: auto;
}

.carousel-dot:first-child .carousel-dot-label {
  left: 0;
  transform: none;
}

.carousel-dot:hover .carousel-dot-node {
  border-color: var(--green-primary);
  transform: scale(1.12);
}

.carousel-dot:hover .carousel-dot-label {
  color: var(--text-primary);
}

.carousel-dot.active .carousel-dot-node {
  background-color: var(--green-primary);
  border-color: var(--green-primary);
  box-shadow: 0 0 0 4px var(--green-light);
}

.carousel-dot.active .carousel-dot-label {
  color: var(--green-primary);
  font-weight: 700;
}

.carousel-arrows {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.carousel-counter {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-right: 0.35rem;
}

.carousel-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-arrow-btn:hover:not(:disabled) {
  border-color: var(--green-primary);
  color: var(--green-primary);
  background-color: var(--green-light);
}

.carousel-arrow-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.updates-carousel-viewport {
  overflow: hidden;
  border-radius: 14px;
  transition: height 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.updates-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.updates-list.updates-track {
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.updates-track > .release-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
}

.release-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 2.25rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.release-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.release-title-area {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.release-version-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.release-version {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.2;
}

.release-status-text {
  font-family: var(--font-body);
  color: var(--green-primary);
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

.release-status-text--archived {
  color: var(--text-muted);
}

.release-date {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.release-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.release-actions .btn {
  padding: 0.65rem 1.35rem;
  font-size: 0.925rem;
}

.btn-disabled,
.btn:disabled {
  background-color: #e2e8f0;
  color: #64748b;
  border: 1px solid #cbd5e1;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.85;
  transform: none;
}

.btn-disabled:hover,
.btn:disabled:hover {
  background-color: #e2e8f0;
  color: #64748b;
  border-color: #cbd5e1;
  box-shadow: none;
  transform: none;
}

.release-summary {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 1.5rem 0 1rem;
}

.release-notices {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.5rem;
}

.notice-accordion {
  margin-bottom: 0;
}

.notice-accordion:first-of-type {
  border-top: 1px solid var(--border-color);
}

.notice-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.notice-summary strong {
  color: var(--text-primary);
  font-weight: 600;
}

.notice-summary::-webkit-details-marker {
  display: none;
}

.notice-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.22s ease;
}

.notice-accordion[open] .notice-chevron {
  transform: rotate(180deg);
}

.notice-body {
  margin-top: 0.45rem;
  padding-top: 0;
  border-top: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.android-download-notice {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  color: var(--text-secondary);
  padding: 0.75rem 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.security-archive-notice {
  background: transparent;
  border: none;
  border-left: 2px solid #94a3b8;
  border-radius: 0;
  color: var(--text-muted);
  padding: 0.15rem 0 0.15rem 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.security-archive-notice strong {
  color: var(--text-primary);
  font-weight: 600;
}

.in-app-browser-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  font-size: 0.925rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.in-app-browser-alert[hidden] {
  display: none;
}

.in-app-alert-content {
  flex: 1 1 280px;
}

.in-app-browser-alert strong {
  color: var(--text-primary);
}

.in-app-browser-alert .copy-apk-btn {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  border-color: var(--border-light);
  color: var(--text-primary);
  background-color: #ffffff;
}

.in-app-browser-alert .copy-apk-btn:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
}

.beta-notice {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  color: var(--text-secondary);
  padding: 0.75rem 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.release-body {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.release-section {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.release-section:first-child {
  padding-top: 0;
  border-top: none;
}

.release-section-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.release-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.release-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.release-list li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--green-primary);
}

.release-list li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.release-specs-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background-color: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.85rem 1rem;
  background-color: var(--bg-secondary);
}

.spec-item--full {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.75rem;
  background-color: var(--bg-card);
  padding: 0.75rem 1rem;
}

.spec-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
  flex-shrink: 0;
}

.spec-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  font-feature-settings: "tnum" 1;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.spec-item--status .spec-value {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--green-dark);
}

.spec-item--status .spec-value::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--green-primary);
  flex-shrink: 0;
}

.spec-item--full .spec-value {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.feedback-banner {
  margin-top: 3rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.feedback-banner h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.feedback-banner p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 520px;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .updates-hero {
    align-items: center;
    gap: 0.9rem 1.25rem;
  }
  .updates-carousel-nav {
    gap: 0.75rem;
  }
  .release-card {
    padding: 1.5rem;
  }
  .release-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.25rem;
  }
  .release-actions {
    width: 100%;
  }
  .release-actions .btn {
    width: 100%;
    min-height: 44px;
  }
  .release-version {
    font-size: 1.5rem;
  }
  .release-specs-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .spec-item {
    padding: 0.75rem 0.9rem;
  }
  .spec-item--full {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 0.75rem 0.9rem;
  }
  .in-app-browser-alert .copy-apk-btn {
    width: 100%;
  }
  .feedback-banner {
    padding: 1.75rem 1.25rem;
  }
}

@media (max-width: 639px) {
  .updates-carousel-nav {
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 1.25rem 0;
  }
  .carousel-dots {
    flex-wrap: nowrap;
    min-width: 0;
    gap: 0.75rem;
  }
  .carousel-dot-node {
    width: 12px;
    height: 12px;
  }
  .carousel-dot:not(:last-child)::after {
    width: calc(100% + 0.75rem);
  }
  .carousel-dot-label {
    display: none;
    font-size: 0.7rem;
  }
  .carousel-dot:nth-child(odd) .carousel-dot-label {
    bottom: calc(100% + 0.25rem);
  }
  .carousel-dot:nth-child(even) .carousel-dot-label {
    top: calc(100% + 0.25rem);
  }
  .carousel-dot.active .carousel-dot-label {
    display: block;
  }
  .carousel-arrows {
    flex-shrink: 0;
    gap: 0.35rem;
  }
  .carousel-counter {
    font-size: 0.75rem;
    margin-right: 0.15rem;
    white-space: nowrap;
  }
  .carousel-arrow-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
}

@media (max-width: 560px) {
  .updates-hero {
    padding-top: 0;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .updates-hero .page-title {
    font-size: 1.65rem;
    margin-bottom: 0.25rem;
  }
  .updates-hero .page-meta {
    font-size: 0.885rem;
  }
  .release-card {
    padding: 1.15rem;
    border-radius: 12px;
  }
  .release-header {
    gap: 0.9rem;
    padding-bottom: 1.1rem;
  }
  .release-title-area {
    gap: 0.25rem;
  }
  .release-version {
    font-size: 1.375rem;
  }
  .release-date {
    font-size: 0.8rem;
  }
  .release-actions {
    gap: 0.55rem;
  }
  .release-actions .btn {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    min-height: 44px;
  }
  .release-summary {
    font-size: 0.925rem;
    line-height: 1.65;
    margin: 1.1rem 0 0.95rem;
  }
  .release-notices {
    gap: 0.55rem;
    margin-bottom: 1.35rem;
  }
  .android-download-notice,
  .beta-notice {
    padding: 0.75rem 0.95rem;
    font-size: 0.85rem;
    line-height: 1.55;
  }
  .release-body {
    gap: 1.35rem;
  }
  .release-section {
    padding-top: 1.25rem;
  }
  .release-section-title {
    font-size: 0.975rem;
    margin-bottom: 0.7rem;
  }
  .release-specs-list {
    border-radius: 10px;
    margin-top: 0.4rem;
  }
  .spec-item,
  .spec-item--full {
    padding: 0.7rem 0.8rem;
    gap: 0.2rem;
  }
  .spec-label {
    font-size: 0.665rem;
    letter-spacing: 0.065em;
  }
  .spec-value {
    font-size: 0.84rem;
    line-height: 1.35;
  }
  .spec-item--status .spec-value {
    gap: 0.35rem;
  }
  .spec-item--status .spec-value::before {
    width: 6px;
    height: 6px;
  }
  .spec-item--full .spec-value {
    font-size: 0.8125rem;
  }
  .release-list {
    gap: 0.7rem;
  }
  .release-list li {
    padding-left: 1.1rem;
    font-size: 0.9rem;
    line-height: 1.6;
  }
  .release-list li::before {
    left: 0.1rem;
    top: 0.58rem;
    width: 5px;
    height: 5px;
  }
  .feedback-banner {
    margin-top: 2rem;
    padding: 1.5rem 1.15rem;
  }
  .feedback-banner h3 {
    font-size: 1.125rem;
  }
  .feedback-banner p {
    font-size: 0.885rem;
  }
}

@media (max-width: 380px) {
  .release-card {
    padding: 1rem;
  }
  .spec-item,
  .spec-item--full {
    padding: 0.65rem 0.7rem;
  }
  .spec-label {
    font-size: 0.64rem;
  }
  .spec-value {
    font-size: 0.8rem;
  }
  .spec-item--full .spec-value {
    font-size: 0.775rem;
  }
  .carousel-dots {
    gap: 0.55rem;
  }
  .carousel-dot {
    width: 22px;
    height: 22px;
  }
  .carousel-dot:not(:last-child)::after {
    width: calc(100% + 0.55rem);
  }
}

