/* =============================================
   STILL Game — Marketing Site CSS
   ============================================= */

/* --- CSS Custom Properties --- */
:root {
  --bg: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --text: #0F172A;
  --text-muted: #64748B;
  --primary: #1E40AF;
  --primary-light: #3B82F6;
  --primary-hover: #1D4ED8;
  --accent: #F59E0B;
  --accent-hover: #D97706;
  --border: #E2E8F0;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-lg: rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.2s ease;
  --header-height: 70px;
}

[data-theme="dark"] {
  --bg: #0F172A;
  --bg-card: #1E293B;
  --bg-card-hover: #263348;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --primary: #3B82F6;
  --primary-light: #60A5FA;
  --primary-hover: #2563EB;
  --accent: #F59E0B;
  --accent-hover: #FBBF24;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-lg: rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background-color var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--primary-light);
}

ul, ol {
  padding-left: 1.5rem;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #0F172A;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #0F172A;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.35);
}

.btn-secondary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background-color var(--transition);
}

[data-theme="dark"] .site-header {
  background: rgba(15, 23, 42, 0.95);
}

[data-theme="light"] .site-header {
  background: rgba(248, 250, 252, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover { color: var(--primary); }

.logo-icon { font-size: 1.6rem; }

.logo-text {
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Main Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: flex-end;
}

.nav-link {
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: rgba(59, 130, 246, 0.08);
}

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

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.2rem;
}

.lang-btn {
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
  text-transform: uppercase;
}

.lang-btn:hover {
  color: var(--primary);
}

.lang-btn.active {
  background: var(--primary);
  color: #fff;
}

/* Theme toggle */
.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--primary);
  transform: scale(1.1);
}

.theme-icon-dark { display: none; }
.theme-icon-light { display: inline; }

[data-theme="dark"] .theme-icon-dark { display: inline; }
[data-theme="dark"] .theme-icon-light { display: none; }

/* --- Hero Section --- */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.12), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.1), transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--primary-light);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.hero h1 {
  margin-bottom: 1.25rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 20px 60px var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.hero-visual-inner {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
  padding: 1.5rem 2rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  flex: 1;
  min-width: 140px;
}

.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* --- Section Styles --- */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-card);
}

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

.section-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow-lg);
  border-color: var(--primary);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- How It Works --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  position: relative;
}

.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.step-card h3 {
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Social Proof --- */
.testimonial-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  text-align: center;
}

.testimonial-quote {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-style: italic;
  font-weight: 500;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
  opacity: 0.95;
}

.testimonial-quote::before { content: '\201E'; font-size: 3rem; line-height: 0; vertical-align: -0.5em; opacity: 0.5; margin-right: 0.25rem; }
.testimonial-quote::after { content: '\201C'; font-size: 3rem; line-height: 0; vertical-align: -0.5em; opacity: 0.5; margin-left: 0.25rem; }

.testimonial-author {
  font-weight: 600;
  opacity: 0.85;
}

/* --- CTA Section --- */
.cta-section {
  padding: 6rem 0;
  text-align: center;
}

.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 8px 40px var(--shadow);
}

.cta-box h2 {
  margin-bottom: 1rem;
}

.cta-box p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* --- Blog Index --- */
.blog-hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
  padding: 2rem 0 5rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow-lg);
  border-color: var(--primary);
  text-decoration: none;
}

.blog-card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.blog-card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--text);
  transition: color var(--transition);
}

.blog-card:hover h2 {
  color: var(--primary);
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.blog-card-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

/* --- Article Page --- */
.article-page {
  padding: 3rem 0 5rem;
}

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

.article-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.article-sep { color: var(--border); }

.article-title {
  margin-bottom: 1rem;
}

.article-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.25rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body strong {
  color: var(--text);
  font-weight: 600;
}

.article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
}

.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.article-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

.article-hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

/* --- Legal Pages --- */
.legal-page {
  padding: 4rem 0 6rem;
}

.legal-header {
  padding-bottom: 2.5rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.legal-header h1 {
  margin-bottom: 0.75rem;
}

.legal-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-body {
  font-size: 1rem;
  line-height: 1.8;
}

.legal-body h2 {
  font-size: 1.3rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.legal-body h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.legal-body h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

.legal-body p {
  margin-bottom: 1rem;
}

.legal-body ul, .legal-body ol {
  margin-bottom: 1rem;
}

.legal-body li {
  margin-bottom: 0.4rem;
}

.legal-highlight {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 4rem 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-bottom: 0.25rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 240px;
}

.footer-email {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-email:hover {
  color: var(--primary);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition);
}

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

.footer-col-cta {
  gap: 0.75rem;
}

.footer-cta-btn {
  align-self: flex-start;
}

.footer-langs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.footer-langs a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: all var(--transition);
}

.footer-langs a:hover,
.footer-langs a.active {
  color: var(--primary);
  background: rgba(59, 130, 246, 0.08);
}

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

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

.footer-bottom-legal {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* --- Game Teaser / Screenshots --- */
.game-teaser {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 100%);
  overflow: hidden;
}

.game-teaser .section-header {
  margin-bottom: 4rem;
}

.screens-row {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: nowrap;
}

.screen-wrap {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.screen-wrap:nth-child(2) .app-screen {
  transform: scale(1.08);
  box-shadow: 0 32px 80px rgba(0,0,0,0.25);
}

.screen-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.app-screen {
  width: 220px;
  background: #1E2640;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.08);
}

.app-screen-bar {
  height: 32px;
  background: #1A1F35;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.4rem;
}

.app-screen-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.app-screen-bar span:nth-child(1) { background: #EF5350; }
.app-screen-bar span:nth-child(2) { background: #F59E0B; }
.app-screen-bar span:nth-child(3) { background: #66BB6A; }

.app-screen-body {
  padding: 1rem;
}

/* Dashboard screen */
.app-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.app-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5B8DEF, #F59E0B);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.app-greeting {
  font-size: 0.65rem;
  color: #A89279;
}

.app-greeting strong {
  display: block;
  color: #E8D5B7;
  font-size: 0.75rem;
}

.app-balance-card {
  background: linear-gradient(135deg, #1565C0, #5B8DEF);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  text-align: center;
}

.app-balance-label {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.app-balance-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.app-balance-sub {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.25rem;
}

.app-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.app-action-btn {
  background: #243054;
  border-radius: 10px;
  padding: 0.6rem 0.4rem;
  text-align: center;
  font-size: 0.6rem;
  color: #E8D5B7;
}

.app-action-btn span {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.app-mini-chart {
  background: #243054;
  border-radius: 10px;
  padding: 0.6rem;
  height: 48px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(to top, #5B8DEF, #81C784);
  border-radius: 3px 3px 0 0;
  opacity: 0.8;
}

/* Goals screen */
.app-section-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: #A89279;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.app-goal-item {
  background: #243054;
  border-radius: 10px;
  padding: 0.6rem;
  margin-bottom: 0.5rem;
}

.app-goal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.app-goal-name {
  font-size: 0.65rem;
  color: #E8D5B7;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.app-goal-pct {
  font-size: 0.6rem;
  font-weight: 700;
  color: #81C784;
}

.app-goal-bar-bg {
  height: 5px;
  background: #2E3A52;
  border-radius: 3px;
  overflow: hidden;
}

.app-goal-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #5B8DEF, #81C784);
}

/* Investments screen */
.app-invest-card {
  background: #243054;
  border-radius: 10px;
  padding: 0.6rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-invest-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.app-invest-info {
  flex: 1;
  min-width: 0;
}

.app-invest-name {
  font-size: 0.65rem;
  font-weight: 600;
  color: #E8D5B7;
  display: block;
}

.app-invest-type {
  font-size: 0.55rem;
  color: #6B7A8D;
}

.app-invest-val {
  text-align: right;
}

.app-invest-amount {
  font-size: 0.65rem;
  font-weight: 700;
  color: #E8D5B7;
  display: block;
}

.app-invest-change {
  font-size: 0.55rem;
}

.up { color: #81C784; }
.down { color: #EF5350; }

@media (max-width: 768px) {
  .screens-row {
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  .app-screen {
    width: 180px;
  }

  .screen-wrap:nth-child(2) .app-screen {
    transform: none;
  }
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.25rem;
    box-shadow: 0 10px 30px var(--shadow);
  }

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

  .nav-actions {
    margin-left: 0;
    margin-top: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
  }

  .site-header {
    position: relative;
  }

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

  .hero-visual-inner {
    flex-direction: column;
    align-items: center;
  }

  .hero-stat {
    min-width: 200px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-brand-col {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .article-footer {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn-lg {
    width: 100%;
    justify-content: center;
  }

  .cta-box {
    padding: 2.5rem 1.25rem;
  }
}

/* ── iOS App Section ─────────────────────────── */
.ios-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.ios-content .section-tag { margin-bottom: 1rem; display: block; }

.ios-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.ios-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.ios-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ios-cta-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.ios-note {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Phone mockup */
.phone-mockup {
  width: 200px;
  height: 400px;
  background: var(--text);
  border-radius: 36px;
  padding: 12px;
  margin: 0 auto;
  box-shadow: 0 30px 80px var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,0.1);
  position: relative;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 28px;
  overflow: hidden;
}

.phone-app-preview {
  padding: 2rem 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg-card) 100%);
}

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

  .ios-visual {
    order: -1;
  }

  .phone-mockup {
    width: 160px;
    height: 320px;
  }
}
