/* SakuraCat Red-Accent Light — Design tokens from sakuracat-DESIGN.md */
:root {
  --primary-red: #dc2626;
  --accent-orange: #f97316;
  --surface-white: #ffffff;
  --bg-secondary: #fef2f2;
  --hero-bg: #f8fafc;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border-soft: #fecaca;
  --shadow-sm: 0 1px 3px rgba(220,38,38,.10);
  --shadow-md: 0 8px 32px rgba(220,38,38,.15);
  --shadow-lg: 0 8px 24px rgba(220,38,38,.20);
  --shadow-glow: 0 0 12px rgba(220,38,38,.50);
  --shadow-subtle: 0 2px 8px rgba(0,0,0,.04);
  --r-sm: 2px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 20px;
  --r-pill: 54px;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html,body { overflow-x: hidden; max-width: 100%; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans SC', sans-serif; font-size: 16px; font-weight: 400; line-height: 1.6; color: var(--text-primary); background: var(--surface-white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Layout ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: 36px; font-weight: 700; line-height: 1.2; color: var(--text-primary); margin-bottom: 16px; }
.section-header p { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* ── Navbar ── */
.navbar { position: sticky; top: 0; z-index: 1000; background: var(--surface-white); border-bottom: 1px solid var(--border-soft); box-shadow: var(--shadow-subtle); }
.nav-container { max-width: 1160px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo a { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 36px; width: auto; }
.nav-logo span { font-size: 20px; font-weight: 700; color: var(--primary-red); letter-spacing: -0.3px; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--text-primary); padding: 8px 14px; border-radius: var(--r-md); transition: color .2s, background .2s; letter-spacing: .3px; }
.nav-links a:hover { color: var(--primary-red); background: var(--bg-secondary); }
/* language switcher desktop */
.lang-switcher { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.lang-switcher a { font-size: 13px; font-weight: 600; color: var(--text-secondary); padding: 5px 9px; border-radius: var(--r-md); border: 1px solid transparent; transition: all .2s; }
.lang-switcher a:hover, .lang-switcher a.active { color: var(--primary-red); border-color: var(--border-soft); background: var(--bg-secondary); }
.lang-switcher span { color: var(--border-soft); font-size: 12px; }
.nav-cta { margin-left: 12px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--text-primary); padding: 6px; line-height: 1; }

/* ── Buttons ── */
.btn-primary { display: inline-block; background: var(--primary-red); color: #fff; padding: 12px 28px; border-radius: var(--r-pill); font-size: 15px; font-weight: 600; letter-spacing: .3px; transition: box-shadow .2s, transform .15s; border: none; cursor: pointer; }
.btn-primary:hover { box-shadow: var(--shadow-glow); transform: translateY(-1px); color: #fff; }
.btn-outline { display: inline-block; background: transparent; color: var(--primary-red); padding: 12px 28px; border-radius: var(--r-pill); font-size: 15px; font-weight: 600; letter-spacing: .3px; border: 2px solid var(--primary-red); transition: background .2s, color .2s; cursor: pointer; }
.btn-outline:hover { background: var(--primary-red); color: #fff; }
.btn-primary.large, .btn-outline.large { padding: 15px 36px; font-size: 17px; }
.btn-primary.full-width, .btn-outline.full-width { width: 100%; text-align: center; display: block; }

/* ── Hero ── */
.hero { background: var(--hero-bg); padding: 96px 0 80px; }
.hero-container { max-width: 1160px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-secondary); border: 1px solid var(--border-soft); border-radius: var(--r-pill); padding: 6px 16px; font-size: 13px; font-weight: 600; color: var(--primary-red); margin-bottom: 24px; }
.hero-title { font-size: 48px; font-weight: 700; line-height: 1.15; color: var(--text-primary); margin-bottom: 20px; }
.hero-title .highlight { color: var(--primary-red); }
.hero-title .accent { color: var(--accent-orange); }
.hero-subtitle { font-size: 18px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 32px; }
.stat-number { font-size: 32px; font-weight: 700; color: var(--primary-red); line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* Hero visual */
.hero-visual { position: relative; }
.hero-img-wrap { border-radius: var(--r-2xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.floating-card { position: absolute; background: var(--surface-white); border: 1px solid var(--border-soft); border-radius: var(--r-xl); padding: 12px 18px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-md); font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; animation: float 3s ease-in-out infinite; }
.floating-card .fc-icon { font-size: 20px; }
.floating-card-1 { top: -20px; left: -20px; animation-delay: 0s; }
.floating-card-2 { top: 40%; right: -24px; animation-delay: 1s; }
.floating-card-3 { bottom: -18px; left: 10%; animation-delay: 2s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

/* ── Features ── */
.features { background: var(--surface-white); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: var(--surface-white); border: 1px solid var(--border-soft); border-radius: var(--r-2xl); padding: 32px 28px; box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .2s; }
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-icon-box { width: 52px; height: 52px; background: var(--bg-secondary); border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 24px; }
.feature-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; color: var(--text-primary); }
.feature-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

/* Feature image section */
.feature-image-section { background: var(--bg-secondary); }
.feature-image-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature-image-grid.reverse { direction: rtl; }
.feature-image-grid.reverse > * { direction: ltr; }
.feature-img-wrap { border-radius: var(--r-2xl); overflow: hidden; box-shadow: var(--shadow-md); }
.feature-img-wrap img { width: 100%; height: 280px; object-fit: cover; }
.feature-text h2 { font-size: 32px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; line-height: 1.3; }
.feature-text p { font-size: 16px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--text-primary); }
.feature-list li::before { content: '✓'; color: var(--primary-red); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── Pricing ── */
.pricing { background: var(--hero-bg); }
.pricing-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 40px; }
.tab-btn { padding: 10px 24px; border-radius: var(--r-pill); border: 2px solid var(--border-soft); background: transparent; font-size: 15px; font-weight: 600; color: var(--text-secondary); cursor: pointer; transition: all .2s; }
.tab-btn.active { background: var(--primary-red); color: #fff; border-color: var(--primary-red); }
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.pricing-card { background: var(--surface-white); border: 1px solid var(--border-soft); border-radius: var(--r-2xl); padding: 32px 28px; position: relative; box-shadow: var(--shadow-sm); }
.pricing-card.featured { border-color: var(--primary-red); box-shadow: var(--shadow-md); transform: scale(1.03); }
.popular-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--primary-red); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 16px; border-radius: var(--r-pill); white-space: nowrap; }
.pricing-card h3 { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; }
.price .currency { font-size: 22px; font-weight: 700; color: var(--primary-red); }
.price .amount { font-size: 42px; font-weight: 700; color: var(--primary-red); line-height: 1; }
.price .period { font-size: 14px; color: var(--text-muted); }
.price-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 24px; }
.pricing-features-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.pricing-features-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-primary); line-height: 1.5; }
.pricing-features-list li .check { color: var(--primary-red); font-weight: 700; flex-shrink: 0; }
.pricing-note { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 40px; }
.tab-content { display: none; }
.tab-content.active { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

/* ── Stats banner ── */
.stats-banner { background: var(--primary-red); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat-item .num { font-size: 42px; font-weight: 700; color: #fff; line-height: 1; }
.stat-item .lbl { font-size: 14px; color: rgba(255,255,255,.8); margin-top: 6px; }

/* ── Nodes ── */
.nodes { background: var(--surface-white); }
.nodes-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.node-card { background: var(--hero-bg); border: 1px solid var(--border-soft); border-radius: var(--r-2xl); padding: 28px; }
.node-card h3 { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.node-tag { display: inline-block; background: var(--bg-secondary); color: var(--primary-red); border: 1px solid var(--border-soft); border-radius: var(--r-pill); padding: 3px 10px; font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.node-regions { font-size: 14px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 10px; }
.node-desc { font-size: 14px; color: var(--text-muted); }

/* ── About ── */
.about { background: var(--bg-secondary); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.about-card { background: var(--surface-white); border-radius: var(--r-2xl); padding: 36px 32px; box-shadow: var(--shadow-sm); }
.about-icon { width: 56px; height: 56px; background: var(--bg-secondary); border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.about-icon svg { width: 28px; height: 28px; stroke: var(--primary-red); }
.about-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.about-card p { color: var(--text-secondary); line-height: 1.7; }
.about-img-wrap { border-radius: var(--r-2xl); overflow: hidden; margin-top: 48px; }
.about-img-wrap img { width: 100%; height: 320px; object-fit: cover; }

/* ── Support ── */
.support { background: var(--surface-white); }
.support-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.support-card { border-radius: var(--r-2xl); padding: 32px 28px; }
.support-card.style-1 { background: var(--hero-bg); border: 1px solid var(--border-soft); }
.support-card.style-2 { background: var(--primary-red); color: #fff; }
.support-card.style-3 { background: var(--bg-secondary); border: 1px solid var(--border-soft); }
.support-icon { font-size: 32px; margin-bottom: 16px; }
.support-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.support-card p { font-size: 15px; line-height: 1.6; opacity: .85; margin-bottom: 20px; }
.support-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--primary-red); transition: gap .2s; }
.support-card.style-2 .support-link { color: #fff; }
.support-link:hover { gap: 10px; }
.support-link svg { width: 16px; height: 16px; }

/* ── Security strip ── */
.security { background: var(--hero-bg); }
.security-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.security-img { border-radius: var(--r-2xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.security-img img { width: 100%; height: 320px; object-fit: cover; }
.security-cards { display: flex; flex-direction: column; gap: 16px; }
.sec-card { display: flex; align-items: flex-start; gap: 16px; background: var(--surface-white); border: 1px solid var(--border-soft); border-radius: var(--r-xl); padding: 20px; box-shadow: var(--shadow-sm); }
.sec-icon { width: 44px; height: 44px; min-width: 44px; background: var(--bg-secondary); border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.sec-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.sec-card p { font-size: 14px; color: var(--text-secondary); }

/* ── CTA Banner ── */
.cta-banner { background: linear-gradient(135deg, var(--primary-red) 0%, #b91c1c 100%); padding: 80px 0; text-align: center; }
.cta-banner h2 { font-size: 38px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.cta-banner p { font-size: 18px; color: rgba(255,255,255,.85); margin-bottom: 36px; }
.cta-banner .btn-white { background: #fff; color: var(--primary-red); padding: 15px 40px; border-radius: var(--r-pill); font-size: 17px; font-weight: 700; display: inline-block; transition: box-shadow .2s, transform .15s; }
.cta-banner .btn-white:hover { box-shadow: 0 8px 24px rgba(0,0,0,.2); transform: translateY(-2px); }

/* ── Footer ── */
.footer { background: var(--text-primary); color: rgba(255,255,255,.85); padding: 64px 0 32px; }
.footer-content { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo img { height: 32px; filter: brightness(0) invert(1); }
.footer-logo span { font-size: 18px; font-weight: 700; color: #fff; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.65); }
.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .8px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,.65); margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,.45); flex-wrap: wrap; gap: 12px; }

/* ── Download page ── */
.platform-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.platform-card { background: var(--surface-white); border: 1px solid var(--border-soft); border-radius: var(--r-2xl); padding: 36px 32px; display: flex; align-items: flex-start; gap: 24px; box-shadow: var(--shadow-sm); transition: box-shadow .25s; }
.platform-card:hover { box-shadow: var(--shadow-md); }
.platform-icon { font-size: 40px; flex-shrink: 0; }
.platform-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.platform-card p { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.6; }

/* ── Page hero (inner pages) ── */
.page-hero { background: var(--hero-bg); border-bottom: 1px solid var(--border-soft); padding: 64px 0; text-align: center; }
.page-hero h1 { font-size: 42px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.page-hero p { font-size: 18px; color: var(--text-secondary); }

/* ── Legal / prose ── */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 26px; font-weight: 700; margin: 40px 0 12px; color: var(--text-primary); }
.prose h3 { font-size: 20px; font-weight: 600; margin: 28px 0 10px; }
.prose p { font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.prose ul { padding-left: 24px; margin-bottom: 16px; }
.prose li { font-size: 15px; color: var(--text-secondary); line-height: 1.8; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info h2 { font-size: 32px; font-weight: 700; margin-bottom: 16px; }
.contact-info p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; }
.contact-method { display: flex; align-items: center; gap: 14px; padding: 20px; background: var(--hero-bg); border: 1px solid var(--border-soft); border-radius: var(--r-xl); margin-bottom: 16px; }
.contact-method .icon { font-size: 24px; }
.contact-method h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.contact-method p { font-size: 14px; color: var(--text-secondary); margin: 0; }
.contact-img { border-radius: var(--r-2xl); overflow: hidden; box-shadow: var(--shadow-md); }
.contact-img img { width: 100%; height: 340px; object-fit: cover; }

/* ── Mobile nav ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 68px 0 0 0;
    width: 100vw;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: var(--surface-white);
    border-top: 1px solid var(--border-soft);
    padding: 20px 0 32px;
    overflow-y: auto;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links > a { width: 88%; text-align: center; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--bg-secondary); }
  .nav-links .lang-switcher { margin: 16px 0 0; width: 88%; justify-content: center; padding-top: 16px; border-top: 1px solid var(--border-soft); }
  .nav-links .nav-cta { margin: 16px 0 0; width: 88%; }
  .nav-links .nav-cta .btn-primary { display: block; text-align: center; }
  .nav-toggle { display: block; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .pricing-grid, .tab-content.active { grid-template-columns: repeat(2,1fr); }
  .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  section { padding: 56px 0; }
  .section-header { margin-bottom: 36px; }
  .section-header h2 { font-size: 28px; }
  .hero { padding: 56px 0; }
  .hero-container { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero-title { font-size: 34px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .floating-card { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-image-grid { grid-template-columns: 1fr; }
  .feature-image-grid.reverse { direction: ltr; }
  .pricing-grid, .tab-content.active { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .nodes-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .security-wrap { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .platform-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-banner h2 { font-size: 28px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 28px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary, .hero-actions .btn-outline { text-align: center; }
  .footer-content { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
