/* ─────────────────────────────────────────────
   Inner Hero — Web Design System
   ───────────────────────────────────────────── */

   :root {
    --primary:        #E53726;
    --primary-dark:   #C42D1E;
    --primary-light:  #FDECEA;
    --accent:         #6B5CE7;
    --accent-light:   #EEF0FD;
    --positive:       #27AE60;
    --positive-light: #E8F5EE;
  
    --app-black: #1A1A1A;
    --gray-100:  #F4F4F6;
    --gray-200:  #E8E8EC;
    --gray-300:  #D0D0D6;
    --gray-400:  #9898A8;
    --gray-600:  #5A5A6A;
    --white:     #FFFFFF;
  
    --text-primary:   #1A1A1A;
    --text-secondary: #5A5A6A;
    --text-tertiary:  #9898A8;
  
    --r-sm:   8px;
    --r-md:   14px;
    --r-lg:   22px;
    --r-xl:   28px;
    --r-pill: 999px;
  
    --shadow-card:  0 2px 8px rgba(26,26,26,.06), 0 1px 2px rgba(26,26,26,.04);
    --shadow-float: 0 12px 40px rgba(26,26,26,.12), 0 2px 8px rgba(26,26,26,.06);
    --shadow-soft: 0 18px 50px rgba(18, 18, 24, .18);

    --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text",
      "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  }
  
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  
  body {
    font-family: var(--font-body);
    background: linear-gradient(180deg, #F8F4F3 0%, #F5F3F8 100%);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  
  a { transition: color .15s; }
  
  .page { min-height: 100vh; display: flex; flex-direction: column; }
  
  .container {
    width: min(1040px, 92%);
    margin: 0 auto;
  }
  
  /* Nav */
  .nav {
    background: rgba(244,244,246,.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
  }
  
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  
  .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
  }
  
  .nav-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
  }

  .nav-logo-icon img {
    width: 20px;
    height: 20px;
    display: block;
  }
  
  .nav-logo-name { font-size: .95rem; font-weight: 700; }
  
  .nav-links { display: flex; gap: 24px; list-style: none; align-items: center; }
  .nav-links a {
    font-size: .875rem; font-weight: 500;
    color: var(--text-secondary); text-decoration: none;
  }
  .nav-links a:hover { color: var(--primary); }

  .lang-toggle {
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--text-primary);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .1s;
  }

  .lang-toggle:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
  }

  .lang-toggle:active { transform: scale(.96); }
  
  /* Hero */
  .hero {
    padding: 80px 0 72px;
    background: radial-gradient(circle at 20% -10%, #FFF0EB 0%, transparent 55%),
      radial-gradient(circle at 85% 10%, #EEF1FF 0%, transparent 50%),
      var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
  }
  
  .hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 55% 50% at 85% 10%, rgba(229,55,38,.07) 0%, transparent 60%),
      radial-gradient(ellipse 45% 60% at 10% 85%, rgba(107,92,231,.06) 0%, transparent 60%);
    pointer-events: none;
  }
  
  .hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
  }
  
  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .72rem; font-weight: 700;
    letter-spacing: .07em; text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: var(--r-pill);
    padding: 4px 12px;
    margin-bottom: 16px;
  }
  
  .hero h1 {
    font-size: clamp(2.2rem, 3.2vw, 3.2rem);
    font-weight: 800; line-height: 1.1;
    letter-spacing: -.025em;
    margin-bottom: 20px;
    color: var(--text-primary);
  }
  
  .hero h1 em { font-style: normal; color: var(--primary); }
  
  .hero-lead {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75; max-width: 460px;
    margin-bottom: 32px;
  }
  
  .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
  
  /* Phone mockup */
  .hero-visual {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .screens-hero {
    position: relative;
    width: min(520px, 100%);
    height: 560px;
  }

  .screen-card {
    position: absolute;
    width: clamp(190px, 24vw, 250px);
    aspect-ratio: 9 / 19.5;
    border-radius: 36px;
    background: #0B0B0F;
    padding: 8px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    --screen-transform: none;
    transition: transform .3s ease, box-shadow .3s ease;
    transform: var(--screen-transform);
  }

  .screen-card img {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    object-fit: cover;
    display: block;
  }

  .screen-left {
    left: 0;
    top: 90px;
    --screen-transform: rotate(-6deg);
  }

  .screen-main {
    left: 50%;
    top: 20px;
    --screen-transform: translateX(-50%);
    width: clamp(210px, 27vw, 270px);
    z-index: 2;
  }

  .screen-right {
    right: 0;
    top: 120px;
    --screen-transform: rotate(6deg);
  }

  .screen-card:hover {
    transform: var(--screen-transform) translateY(-6px) scale(1.01);
    box-shadow: 0 24px 60px rgba(15, 15, 20, .22);
  }
  
  /* Buttons */
  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .9rem; font-weight: 600;
    border-radius: var(--r-pill);
    padding: 11px 22px;
    cursor: pointer; text-decoration: none; border: none;
    transition: transform .1s, box-shadow .1s, background .12s;
    line-height: 1;
  }
  
  .btn:active { transform: scale(.97); }
  
  .btn-primary {
    background: var(--primary); color: var(--white);
    box-shadow: 0 4px 16px rgba(229,55,38,.32);
  }
  .btn-primary:hover { background: var(--primary-dark); color: var(--white); }
  
  .btn-ghost {
    background: var(--white); color: var(--text-primary);
    border: 1.5px solid var(--gray-200);
  }
  .btn-ghost:hover { background: var(--gray-100); color: var(--text-primary); }
  
  .btn-accent {
    background: var(--accent); color: var(--white);
    box-shadow: 0 4px 16px rgba(107,92,231,.32);
  }
  .btn-accent:hover { background: #5849d4; color: var(--white); }
  
  /* Sections */
  .section { padding: 64px 0; }
  .section-light { background: var(--white); }
  .section-muted { background: var(--gray-100); }
  
  .section-header { text-align: center; margin-bottom: 48px; }
  
  .section-eyebrow {
    display: inline-block;
    font-size: .72rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--text-tertiary); margin-bottom: 12px;
  }
  
  .section-header h2 {
    font-size: clamp(1.7rem, 2.5vw, 2.4rem);
    font-weight: 700; letter-spacing: -.02em;
    color: var(--text-primary); line-height: 1.2;
  }
  
  .section-lead {
    font-size: 1rem; color: var(--text-secondary);
    max-width: 500px; margin: 12px auto 0; line-height: 1.75;
  }
  
  /* Cards */
  .card {
    background: var(--white);
    border-radius: var(--r-lg);
    padding: 32px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-200);
  }
  
  .card + .card { margin-top: 24px; }
  
  .card h2 {
    font-size: 1.2rem; font-weight: 700;
    color: var(--text-primary); margin-bottom: 12px;
  }
  
  .card p {
    color: var(--text-secondary); line-height: 1.7;
    margin-bottom: 12px;
  }
  .card p:last-child { margin-bottom: 0; }
  .card a { color: var(--primary); font-weight: 500; text-decoration: none; }
  .card a:hover { text-decoration: underline; }
  
  /* Feature grid */
  .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
    gap: 24px;
  }
  
  .feature-card {
    background: var(--white);
    border-radius: var(--r-lg); padding: 32px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-200);
    transition: transform .18s, box-shadow .18s;
  }
  
  .feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); }
  
  .feature-icon {
    width: 50px; height: 50px;
    border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 20px;
  }
  
  .fi-red    { background: var(--primary-light); }
  .fi-purple { background: var(--accent-light); }
  .fi-green  { background: var(--positive-light); }
  .fi-orange { background: #FFF4EB; }
  .fi-teal   { background: #E5F6F6; }
  
  .feature-card h3 {
    font-size: 1rem; font-weight: 700;
    color: var(--text-primary); margin-bottom: 8px;
  }
  
  .feature-card p {
    font-size: .875rem; color: var(--text-secondary); line-height: 1.65;
  }
  
  .feature-tag {
    display: inline-block; margin-top: 16px;
    font-size: .7rem; font-weight: 700;
    letter-spacing: .04em; border-radius: var(--r-pill); padding: 3px 10px;
  }
  
  .tag-red    { background: var(--primary-light); color: var(--primary); }
  .tag-purple { background: var(--accent-light);  color: var(--accent); }
  .tag-green  { background: var(--positive-light); color: var(--positive); }
  .tag-orange { background: #FFF4EB; color: #D46B00; }
  .tag-teal   { background: #E5F6F6; color: #1A7B7B; }
  
  /* Stats bar */
  .stats-bar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: var(--gray-200);
    border-radius: var(--r-lg); overflow: hidden;
    border: 1px solid var(--gray-200); margin-top: 48px;
  }
  
  .stat-cell {
    background: var(--white); padding: 24px 16px; text-align: center;
  }
  
  .stat-value {
    display: block; font-size: 2rem; font-weight: 800;
    letter-spacing: -.03em; line-height: 1; margin-bottom: 4px;
  }
  
  .sv-red    { color: var(--primary); }
  .sv-purple { color: var(--accent); }
  .sv-green  { color: var(--positive); }
  
  .stat-label { font-size: .82rem; color: var(--text-secondary); }
  
  /* CTA banner */
  .cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #FF6B5B 100%);
    border-radius: var(--r-xl); padding: 56px 48px;
    color: var(--white); text-align: center;
  }
  
  .cta-banner h2 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700; letter-spacing: -.02em;
    line-height: 1.3; margin-bottom: 12px;
  }

  /* Screenshots */
  .section-gallery {
    background: linear-gradient(180deg, #FFFFFF 0%, #F7F4F9 100%);
  }

  .screens-carousel {
    position: relative;
  }

  .screens-carousel::before,
  .screens-carousel::after {
    content: none;
  }

  .screens-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(190px, 28vw, 240px);
    gap: 18px;
    overflow-x: auto;
    padding: 10px 8px 24px;
    scroll-snap-type: x mandatory;
    scroll-padding: 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .screens-track::-webkit-scrollbar { display: none; }

  .screen-tile {
    scroll-snap-align: center;
    display: grid;
    gap: 10px;
    align-content: start;
  }

  .screen-frame {
    background: #0B0B0F;
    border-radius: 26px;
    padding: 6px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
  }

  .screen-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
  }

  .screen-tile figcaption {
    font-size: .82rem;
    color: var(--text-secondary);
    padding: 0 6px 10px;
  }
  
  .cta-banner p {
    font-size: 1rem; opacity: .85;
    max-width: 480px; margin: 0 auto 24px; line-height: 1.7;
  }
  
  .btn-white {
    background: var(--white); color: var(--primary);
    font-size: .9rem; font-weight: 700;
    border-radius: var(--r-pill); padding: 11px 24px;
    text-decoration: none; display: inline-block;
    transition: transform .1s, box-shadow .1s;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
  }
  
  .btn-white:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
    color: var(--primary);
  }
  
  /* Privacy */
  .privacy-list {
    list-style: disc; padding-left: 1.35rem;
    margin: 12px 0; color: var(--text-secondary); line-height: 1.85;
  }
  .privacy-list li { margin-bottom: 4px; }
  
  /* Misc */
  .muted { color: var(--text-secondary); }
  
  .badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: .72rem; font-weight: 600;
    border-radius: var(--r-pill); padding: 3px 9px;
  }
  .badge-red    { background: var(--primary-light); color: var(--primary); }
  .badge-purple { background: var(--accent-light);  color: var(--accent); }
  .badge-green  { background: var(--positive-light); color: var(--positive); }
  
  .email-link {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px; border-radius: var(--r-pill);
    background: var(--primary); color: var(--white) !important;
    text-decoration: none !important; font-weight: 600; font-size: .9rem;
    box-shadow: 0 4px 16px rgba(229,55,38,.3);
    transition: background .12s;
  }
  .email-link:hover { background: var(--primary-dark); }
  
  /* Footer */
  .footer {
    margin-top: auto;
    background: var(--white); border-top: 1px solid var(--gray-200); padding: 32px 0;
  }
  
  .footer-inner {
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: 16px;
  }
  
  .footer-brand {
    display: flex; align-items: center; gap: 8px;
    text-decoration: none; color: var(--text-primary);
    font-weight: 700; font-size: .875rem;
  }
  
  .footer-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
  }

  .footer-brand-icon img {
    width: 16px;
    height: 16px;
    display: block;
  }
  
  .footer-links { display: flex; gap: 20px; list-style: none; }
  .footer-links a {
    font-size: .825rem; color: var(--text-secondary); text-decoration: none;
  }
  .footer-links a:hover { color: var(--primary); }
  
  .footer-copy { font-size: .775rem; color: var(--text-tertiary); }
  
  /* Responsive */
  @media (max-width: 760px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 48px; }
    .hero-lead  { max-width: 100%; }
    .hero-cta   { justify-content: center; }
    .hero-visual { justify-content: center; }
    .screens-hero {
      height: auto;
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: 70%;
      gap: 16px;
      overflow-x: auto;
      padding: 6px 8px 16px;
      scroll-snap-type: x mandatory;
    }
    .screen-card {
      position: relative;
      inset: auto;
      transform: none;
      scroll-snap-align: center;
      width: 100%;
    }
    .screen-card:hover { transform: none; }
    .stats-bar  { grid-template-columns: 1fr; }
    .nav-links  { display: none; }
    .footer-inner { flex-direction: column; text-align: center; }
    .cta-banner { padding: 40px 24px; }
    .feature-grid { grid-template-columns: 1fr; }
  }

  @media (prefers-reduced-motion: no-preference) {
    .hero-text { animation: rise-in .6s ease both; }
    .screen-left { animation: rise-in .7s ease .05s both; }
    .screen-main { animation: rise-in .75s ease .1s both; }
    .screen-right { animation: rise-in .8s ease .15s both; }
  }

  @keyframes rise-in {
    from { opacity: 0; transform: var(--screen-transform) translateY(16px) scale(.98); }
    to { opacity: 1; transform: var(--screen-transform) translateY(0) scale(1); }
  }
