/* Base reset and variables */
:root{
  --bg:#ffffff;
  --fg:#0e1a0f;
  --muted:#5f6b62;
  --accent:#F09819;
  --accent-strong:#F06143;
  --surface:#f4f7f1;
  --shadow:0 8px 24px rgba(0,0,0,.08);
}
*{box-sizing:border-box}
html,body{height:100%}

/* MOBILE BASE STYLES (320px+) */
body{
  margin:0;
  font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  color:var(--fg);
  background:var(--bg);
  line-height:1.4;
  padding-top:60px;
}
img{max-width:100%;display:block;height:auto}
a{color:inherit;text-decoration:none}

/* Header - Mobile (2 columns: logo+name left, language right) */
.app-header{
  position:fixed;top:0;inset-inline:0;z-index:50;
  background:rgba(255,255,255,.8);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid rgba(0,0,0,.05);
}
.app-header.scrolled{box-shadow:var(--shadow)}
.header-inner{
  max-width:1120px;margin:0 auto;padding:10px 16px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
}
.brand{display:flex;flex-direction:row;align-items:center;gap:8px;font-weight:800;letter-spacing:.2px;color:var(--accent);font-size:16px}
.brand-logo{width:40px;height:40px;object-fit:cover;border-radius:10px}

/* Header language switch - larger on mobile */
.lang-switch{display:flex;gap:8px}
.lang-switch .lang-btn,.lang-switch a{padding:8px 14px;border-radius:999px;border:1px solid rgba(0,0,0,.1);font-weight:800;font-size:13px;color:var(--fg);background:#fff;cursor:pointer;transition:all .2s ease}
.lang-switch .lang-btn.active,.lang-switch a.active{background:var(--accent);color:#fff;border-color:transparent}
/* Hide header store badges on mobile */
.header-inner .store-badges{display:none}

/* Sections - Mobile (single column) */
.section{min-height:70svh;display:flex;align-items:center}
.section .container{
  max-width:1120px;margin:0 auto;padding:24px 16px;
  display:grid;gap:24px;align-items:center;
  grid-template-columns:1fr;
}
.section:nth-child(odd){background:var(--surface)}

.col{position:relative;display:flex;justify-content:center;align-items:center;flex-direction:column}
.col.right{text-align:center}
.h1{font-size:clamp(32px,5vw,56px);line-height:1.05;margin:0 0 14px;font-weight:900}
.h2{font-size:clamp(24px,4vw,40px);line-height:1.15;margin:0 0 10px;font-weight:900}
.sub{font-size:clamp(16px,2.2vw,20px);color:var(--muted);margin:0 0 22px}
.highlight{color:var(--accent);font-weight:900}

/* Images styling */
.img,.hero-img{border-radius:18px;box-shadow:var(--shadow);margin:0 auto}
.img{width:min(340px,72vw)}
.hero-img{width:min(320px,70vw)}
.cluster{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:center;justify-content:center}
.cluster .img{width:100%;max-width:260px}
.cluster .img:nth-child(1){transform:rotate(-1.5deg)}
.cluster .img:nth-child(2){transform:rotate(1.25deg)}

/* CTA group - stacked vertically on mobile for larger touch targets */
.cta-group{display:flex;flex-direction:column;gap:12px;align-items:stretch;width:100%;max-width:320px;margin:0 auto}

/* Legal pages - Mobile */
.legal-container{max-width:900px;margin:0 auto;padding:24px 16px}
.legal-content ul{padding-left:1.2rem}
.legal-content .h2{font-size:clamp(18px,3vw,24px);margin-top:24px;margin-bottom:12px}
/* Email styling */
.email-link{color:#F09819;font-weight:600;text-decoration:none;transition:opacity .2s ease}
.email-link:hover{opacity:.8;text-decoration:underline}

/* Store badges - Mobile (larger for better touch) */
.store-badges{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.store-badge{display:inline-flex;align-items:center;justify-content:center;gap:10px;background:linear-gradient(135deg,#F06143 0%,#F09819 100%);color:#fff;
  border-radius:12px;padding:12px 16px;height:56px;width:100%;box-shadow:var(--shadow);
  transition:transform .2s ease, opacity .2s ease}
.store-badge:hover{transform:translateY(-1px);opacity:.96}
.store-badge .logo{width:24px;height:24px;flex:0 0 auto}
.store-badge .label{display:flex;flex-direction:column;line-height:1.2;flex:1}
.store-badge .small{font-size:10px;letter-spacing:.3px;opacity:.85;text-transform:uppercase}
.store-badge .big{font-size:16px;font-weight:800}
/* Platform-specific energetic colors */
.store-badge.ios{background:linear-gradient(135deg,#8630E3 0%,#447EE3 100%)}
.store-badge.android{background:linear-gradient(135deg,#F06143 0%,#F09819 100%)}
/* Header store badges - stacked vertically on mobile, positioned in column 3 */
.header-inner .store-badges{flex-direction:column;gap:4px;justify-self:end;padding-right:4px}
.header-inner .store-badge{height:32px;min-width:100px;padding:4px 8px;gap:6px}
.header-inner .store-badge .logo{width:16px;height:16px}
.header-inner .store-badge .small{font-size:7px}
.header-inner .store-badge .big{font-size:10px}
.header-inner .store-badge .label{min-width:70px}

/* Reveal on scroll */
.offscreen-left{transform:translateX(-40px);opacity:0}
.offscreen-right{transform:translateX(40px);opacity:0}
.revealed{transform:none;opacity:1;transition:transform .7s cubic-bezier(.2,.7,0,1), opacity .7s ease}
.delay-1{transition-delay:.12s}
.delay-2{transition-delay:.24s}

/* Unique image animations */
@keyframes pulse-slow{0%,100%{transform:scale(1)}50%{transform:scale(1.03)}}
.pulse{animation:pulse-slow 4s ease-in-out infinite}

@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
.float{animation:floaty 6s ease-in-out infinite}

@keyframes rise-in{0%{transform:translateY(16px);opacity:.0}100%{transform:none;opacity:1}}
.rise{animation:rise-in .9s cubic-bezier(.2,.7,0,1) both}

@keyframes card-in{0%{transform:translateY(16px) scale(.98) rotate(-.5deg);opacity:0}100%{transform:none;opacity:1}}
.card-in{animation:card-in .8s cubic-bezier(.2,.7,0,1) both}
.card-in.delay-1{animation-delay:.08s}
.card-in.delay-2{animation-delay:.18s}

@keyframes sway{0%,100%{transform:rotate(-1.9deg)}50%{transform:rotate(1.9deg)}}
.sway{animation:sway 7s ease-in-out infinite}

/* Footer - Mobile */
.footer{padding:32px 16px 24px;border-top:1px solid rgba(0,0,0,.06);background:#fff}
.footer-brand{display:flex;align-items:center;gap:12px;justify-content:center;margin-bottom:20px}
.footer-logo-box{
  width:48px;height:48px;
  border-radius:12px;
  box-shadow:0 4px 12px rgba(0,0,0,.1);
  overflow:hidden;
}
.footer-logo{width:100%;height:100%;object-fit:cover;display:block}
.footer-app-name{font-size:20px;font-weight:800;color:var(--accent);letter-spacing:.3px}
.footer-nav{display:flex;gap:10px;align-items:center;justify-content:center;margin-bottom:10px}
.footer-nav a{color:var(--muted);font-size:13px;font-weight:500}
.footer-nav a:hover{color:var(--accent)}
.footer-separator{color:var(--muted);opacity:.4;font-weight:300}
.footnote{color:var(--muted);text-align:center;font-size:12px;opacity:.7}

/* ============================================
   TABLET STYLES (768px+)
   ============================================ */
@media (min-width: 768px){
  body{padding-top:68px}
  
  /* Header - Tablet (show store badges, 3 columns) */
  .header-inner{padding:12px 18px;display:flex;justify-content:space-between;align-items:center}
  .brand{flex-direction:row;gap:8px;font-size:20px;align-items:center}
  .brand-logo{width:48px;height:48px;border-radius:12px}
  .lang-switch{gap:7px}
  .lang-switch .lang-btn,.lang-switch a{padding:6px 10px;font-size:12px}
  /* Header store badges - show and make horizontal on tablet */
  .header-inner .store-badges{display:flex;flex-direction:row;gap:10px;padding-right:0}
  .header-inner .store-badge{height:40px;min-width:120px;padding:6px 10px;gap:8px;width:auto}
  .header-inner .store-badge .logo{width:20px;height:20px}
  .header-inner .store-badge .small{font-size:9px}
  .header-inner .store-badge .big{font-size:12px}
  .header-inner .store-badge .label{min-width:75px;flex:0}
  
  /* Sections - Tablet */
  .section .container{padding:32px 20px;gap:28px}
  
  /* CTA group - horizontal on tablet */
  .cta-group{flex-direction:row;max-width:100%;justify-content:center}
  
  /* Store badges - Tablet (in sections) */
  .section .store-badges{gap:12px}
  .section .store-badge{gap:10px;padding:10px 14px;height:50px;border-radius:12px;width:auto;min-width:160px}
  .section .store-badge .logo{width:22px;height:22px}
  .section .store-badge .small{font-size:10px}
  .section .store-badge .big{font-size:15px}
  .section .store-badge .label{flex:0}
  
  /* Footer - Tablet */
  .footer{padding:36px 20px 28px}
  .footer-brand{gap:14px;margin-bottom:22px}
  .footer-logo-box{width:52px;height:52px;border-radius:13px}
  .footer-app-name{font-size:22px}
  .footer-nav{gap:11px;margin-bottom:11px}
  .footer-nav a{font-size:13.5px}
  .footnote{font-size:12.5px}
  
  /* Legal - Tablet */
  .legal-container{padding:28px 20px}
}

/* ============================================
   DESKTOP STYLES (1024px+)
   ============================================ */
@media (min-width: 1024px){
  body{padding-top:72px}
  
  /* Header - Desktop */
  .header-inner{padding:14px 20px;display:flex;justify-content:space-between}
  .brand{flex-direction:row;gap:8px;font-size:22px;align-items:center}
  .brand-logo{width:56px;height:56px;border-radius:14px}
  .lang-switch{gap:8px;margin-right:4px}
  .lang-switch .lang-btn,.lang-switch a{padding:6px 10px;font-size:12px}
  /* Header store badges - full size on desktop */
  .header-inner .store-badges{flex-direction:row;gap:12px}
  .header-inner .store-badge{height:44px;min-width:140px;padding:8px 12px;gap:10px}
  .header-inner .store-badge .logo{width:22px;height:22px}
  .header-inner .store-badge .small{font-size:10px;letter-spacing:.4px}
  .header-inner .store-badge .big{font-size:14px}
  .header-inner .store-badge .label{min-width:90px}
  
  /* Sections - Desktop (2 columns) */
  .section .container{
    padding:38px 20px;
    gap:32px;
    grid-template-columns:1.05fr 1fr;
  }
  .col{justify-content:flex-start;align-items:flex-start}
  .col.right{text-align:left;align-items:flex-start}
  .cta-group{justify-content:flex-start;flex-direction:row;max-width:100%}
  .cluster{justify-content:flex-start}
  
  /* Store badges - Desktop (in sections) */
  .section .store-badges{gap:14px}
  .section .store-badge{gap:10px;padding:10px 16px;height:52px;border-radius:12px;min-width:170px;width:auto}
  .section .store-badge .logo{width:24px;height:24px}
  .section .store-badge .small{font-size:11px;letter-spacing:.4px}
  .section .store-badge .big{font-size:16px}
  .section .store-badge .label{min-width:100px;flex:0}
  
  /* Footer - Desktop */
  .footer{padding:40px 20px 32px}
  .footer-brand{gap:16px;margin-bottom:24px}
  .footer-logo-box{width:56px;height:56px;border-radius:14px}
  .footer-app-name{font-size:24px}
  .footer-nav{gap:12px;margin-bottom:12px}
  .footer-nav a{font-size:14px}
  .footnote{font-size:13px}
  
  /* Legal - Desktop */
  .legal-container{padding:32px 20px}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .pulse,.float,.sway{animation-duration:.001s;animation-iteration-count:1}
  .revealed{transition:none}
}
