:root {
    --bg: #0a0a14;
    --text: #f4f4f7;
    --muted: #9ea0b3;
    --card: rgba(255, 255, 255, 0.04);
    --card-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --red-1: #a82828;
    --red-2: #5c0000;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg); color: var(--text);
    line-height: 1.6; min-height: 100vh;
    display: flex; flex-direction: column;
    overflow-x: hidden; -webkit-font-smoothing: antialiased;
  }

  body::before {
    content: ""; position: fixed; top: -20%; left: -10%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(168,40,40,0.35), transparent 60%);
    filter: blur(80px); z-index: -1;
    animation: float 18s ease-in-out infinite;
  }
  body::after {
    content: ""; position: fixed; bottom: -20%; right: -10%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(168,40,40,0.35), transparent 60%);
    filter: blur(80px); z-index: -1;
    animation: float 18s ease-in-out infinite reverse;
  }
  @keyframes float {
    0%, 100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(40px,-30px) scale(1.1); }
  }

  .container { max-width: 1180px; margin: 0 auto; padding: 0 24px; width: 100%; }

  /* ── HEADER ── */
  header {
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    background: rgba(10,10,20,0.6); border-bottom: 1px solid var(--border);
  }
  nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 16px; }
  .logo {
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.5rem;
    letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: inherit;
  }
  .logo-mark {
    width: 44px; height: 38px; display: block;
    filter: drop-shadow(0 8px 18px rgba(168,40,40,0.5));
    transition: transform 0.25s ease;
  }
  .logo:hover .logo-mark { transform: rotate(-4deg) scale(1.05); }
  .logo span { background: linear-gradient(135deg, #fff, #ffc5b9); -webkit-background-clip: text; background-clip: text; color: transparent; }

  .nav-menu { display: flex; gap: 28px; list-style: none; margin: 0 auto; }
  .nav-menu li a {
    color: var(--muted); font-size: 0.95rem; font-weight: 500;
    letter-spacing: 0.01em; text-decoration: none; transition: color 0.2s; padding-bottom: 2px;
  }
  .nav-menu li a:hover { color: var(--text); }
  .nav-menu li a.active { color: var(--text); border-bottom: 1px solid rgba(168,40,40,0.7); }
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }
  .nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card);
    cursor: pointer;
    color: var(--text);
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
  }
  header.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  header.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  header.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  @media (max-width: 760px) {
    nav { position: relative; flex-wrap: wrap; }
    .nav-toggle { display: flex; }
    .nav-menu {
      display: none;
      flex-direction: column;
      gap: 0;
      width: 100%;
      order: 10;
      margin: 0;
      padding: 8px 0 12px;
      border-top: 1px solid var(--border);
    }
    header.nav-open .nav-menu { display: flex; }
    .nav-menu li a {
      display: block;
      padding: 14px 4px;
      font-size: 1rem;
    }
    .nav-menu li a.active { border-bottom: 0; color: var(--text); }
  }
.lang-switch {
    display: inline-flex; background: var(--card);
    border: 1px solid var(--border); border-radius: 999px; padding: 4px; gap: 2px;
  }
  .lang-switch button {
    background: transparent; border: 0; color: var(--muted);
    font-family: inherit; font-weight: 600; font-size: 0.8rem;
    padding: 6px 12px; border-radius: 999px; cursor: pointer;
    transition: all 0.2s; letter-spacing: 0.05em;
  }
  .lang-switch button:hover { color: var(--text); }
  .lang-switch button.active {
    background: linear-gradient(135deg, var(--red-1), var(--red-2));
    color: white; box-shadow: 0 4px 14px rgba(168,40,40,0.5);
  }

  /* ── HERO ── */
  .hero { padding: 48px 0 48px; }
  .hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.7rem, 4.6vw, 3rem);
    line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; margin-bottom: 28px;
  }
  .hero h1 em {
    font-style: normal; display: block;
    font-size: 0.52em; font-weight: 400; letter-spacing: -0.02em; line-height: 1.1;
    background: linear-gradient(135deg, #ff8a80, #a82828);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-top: 4px;
  }

  /* subtitle + button side by side */
  .hero-sub-row {
    display: flex; align-items: center; gap: 0; flex-wrap: wrap;
    width: 100%;
  }
  .hero-sub-row .sub {
    flex: 0 0 76%;
    color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.1rem); line-height: 1.7;
  }
  .hero-cta-wrap {
    flex: 1; display: flex; justify-content: center; padding-left: 20px;
  }
  @media (max-width: 700px) {
    .hero-sub-row { flex-direction: column; align-items: flex-start; gap: 24px; }
    .hero-sub-row .sub { flex: none; width: 100%; }
    .hero-cta-wrap { padding-left: 0; justify-content: flex-start; }
  }

  .btn-primary {
    font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 600;
    padding: 14px 28px; border-radius: 12px;
    text-decoration: none; color: white; border: none; cursor: pointer;
    background: linear-gradient(135deg, var(--red-1), var(--red-2));
    box-shadow: 0 10px 30px rgba(168,40,40,0.4);
    transition: transform 0.2s, box-shadow 0.2s; display: inline-block;
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(168,40,40,0.55); }

  /* ── STATS ── */
  .stats-row {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
    background: var(--border); border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden; margin: 48px 0 0;
    width: 100%; max-width: 100%;
  }
  .stat-cell {
    background: var(--card); padding: 28px 16px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; min-width: 0;
  }
  .stat-cell .num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.35rem, 4.5vw, 2.4rem); font-weight: 700;
    letter-spacing: -0.04em; line-height: 1.1;
    background: linear-gradient(135deg, #fff, #ffc5b9);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: 6px; width: 100%; max-width: 100%; text-align: center;
  }
  .stat-cell .num span { font-size: 0.58em !important; }
  .stat-cell .label {
    font-size: 0.82rem; color: var(--muted); text-transform: uppercase;
    letter-spacing: 0.06em; font-weight: 500; width: 100%; max-width: 100%;
    text-align: center; line-height: 1.35;
    overflow-wrap: break-word; word-break: break-word; hyphens: auto;
  }
  @media (max-width: 760px) {
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-cell { padding: 22px 12px; }
    .stat-cell .num { font-size: clamp(1.25rem, 6vw, 1.85rem); }
    .stat-cell .label { font-size: 0.72rem; letter-spacing: 0.04em; }
  }
  @media (max-width: 400px) {
    .stat-cell .num { font-size: 1.35rem; }
    .stat-cell .label { font-size: 0.68rem; }
  }

  /* ── SECTION TITLE ── */
  .section-title { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
  .section-title h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.55rem; font-weight: 700; letter-spacing: -0.02em;
  }

  /* ── CARDS ── */
  .cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
  @media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

  .card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 20px; overflow: hidden;
    transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    text-decoration: none; color: inherit; display: block; position: relative;
  }
  .card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    border-radius: 20px 20px 0 0; opacity: 0.9;
  }
  .c1::before { background: linear-gradient(90deg, #a82828, #ff8a80); }
  .c2::before { background: linear-gradient(90deg, #d97706, #fbbf24); }
  .c3::before { background: linear-gradient(90deg, #7c3aed, #c084fc); }
  .c4::before { background: linear-gradient(90deg, #059669, #34d399); }

  .card:hover {
    background: var(--card-hover); border-color: var(--border-hover);
    transform: translateY(-3px); box-shadow: 0 20px 48px rgba(0,0,0,0.35);
  }
  .card-body { padding: 28px 28px 22px; }
  .card-icon {
    width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    border: 1px solid var(--border); background: rgba(255,255,255,0.04);
  }
  /* icon + title side by side */
  .card-header-row {
    display: flex; align-items: flex-start; gap: 16px; margin-bottom: 14px;
  }
  .card-title-group { flex: 1; }
  .card-title-group .card-tag { margin-bottom: 6px; }
  .card-title-group h3 { margin-bottom: 0; }
  .card-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
  .c1 .card-tag { color: #ff8a80; }
  .c2 .card-tag { color: #fbbf24; }
  .c3 .card-tag { color: #c084fc; }
  .c4 .card-tag { color: #34d399; }

  .card h3 {
    font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700;
    letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 12px; color: var(--text);
  }
  .card p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; margin-bottom: 20px; }

  .card-features { list-style: none; margin-bottom: 6px; }
  .card-features li {
    font-size: 0.85rem; color: rgba(244,244,247,0.7);
    padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; align-items: center; gap: 10px;
  }
  .card-features li:last-child { border-bottom: none; }
  .card-features li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; opacity: 0.7; }
  .c1 .card-features li::before { background: #ff8a80; }
  .c2 .card-features li::before { background: #fbbf24; }
  .c3 .card-features li::before { background: #c084fc; }
  .c4 .card-features li::before { background: #34d399; }

  .card-footer {
    padding: 16px 28px; border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(255,255,255,0.02);
  }
  .card-footer .meta { font-size: 0.78rem; color: var(--muted); }
  .card-link {
    font-size: 0.85rem; font-weight: 600; text-decoration: none;
    display: flex; align-items: center; gap: 5px; transition: gap 0.2s;
  }
  .card:hover .card-link { gap: 9px; }
  .c1 .card-link { color: #fff; }
  .c2 .card-link { color: #fff; }
  .c3 .card-link { color: #fff; }
  .c4 .card-link { color: #fff; }
  .card-link::after { content: '→'; }

  /* ── CTA ── */
  .cta-banner {
    margin-top: 52px; margin-bottom: 16px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 24px; padding: 44px;
    display: flex; align-items: center;
    justify-content: space-between; gap: 28px; flex-wrap: wrap;
    position: relative; overflow: hidden;
  }
  .cta-banner::before {
    content: ''; position: absolute; top: -60px; right: -60px;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(168,40,40,0.18), transparent 70%);
    pointer-events: none;
  }
  .cta-banner h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px;
  }
  .cta-banner p { color: var(--muted); font-size: 0.95rem; }

  /* ── FOOTER ── */
  footer {
    border-top: 1px solid var(--border); padding: 20px 0;
    text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: auto;
  }
  footer a { color: var(--muted); text-decoration: none; margin: 0 8px; transition: color 0.2s; }
  footer a:hover { color: var(--text); }
