/* ============================================
   KlinPDF — Design tokens
   ============================================ */
:root{
  --bg: #0A0D18;
  --bg-2: #0E1224;
  --surface: #141930;
  --surface-2: #1B2140;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --text: #ECEEF7;
  --text-dim: #9BA1BD;
  --text-faint: #6A7090;
  --indigo: #6C63FF;
  --violet: #9B6BFF;
  --mint: #5EE6B8;
  --flame: #FF7A45;
  --grad-primary: linear-gradient(135deg, #6C63FF 0%, #9B6BFF 100%);
  --grad-flame: linear-gradient(135deg, #FF7A45 0%, #9B6BFF 60%, #6C63FF 100%);
  --shadow-glow: 0 0 60px rgba(108,99,255,0.25);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; }
}

body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

a{ color: inherit; text-decoration:none; }
ul{ list-style:none; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; background:none; border:none; cursor:pointer; color:inherit; }

h1,h2,h3{ font-family: var(--font-display); font-weight:600; letter-spacing:-0.01em; }

/* ============== background texture ============== */
.grain{
  position:fixed; inset:0; pointer-events:none; z-index:1;
  opacity:0.035; mix-blend-mode:overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bg-orb{
  position:fixed; border-radius:50%; filter:blur(90px); pointer-events:none; z-index:0;
}
.orb-1{
  width:560px; height:560px; top:-180px; right:-160px;
  background: radial-gradient(circle, rgba(108,99,255,0.35), transparent 70%);
}
.orb-2{
  width:480px; height:480px; top:1400px; left:-200px;
  background: radial-gradient(circle, rgba(255,122,69,0.18), transparent 70%);
}

/* ============================================
   HEADER
   ============================================ */
.site-header{
  position:sticky; top:0; z-index:50;
  background: rgba(10,13,24,0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height:76px;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand-mark{ width:34px; height:34px; border-radius:9px; }
.brand-name{ font-family:var(--font-display); font-size:1.2rem; font-weight:700; }
.brand-accent{ color: var(--violet); }

.main-nav{ display:flex; gap:32px; }
.main-nav a{
  font-size:0.94rem; color:var(--text-dim); font-weight:500;
  transition: color 0.2s var(--ease);
  position:relative;
}
.main-nav a:hover{ color:var(--text); }
.main-nav a::after{
  content:''; position:absolute; left:0; bottom:-6px; width:0; height:2px;
  background:var(--grad-primary); transition:width 0.25s var(--ease);
}
.main-nav a:hover::after{ width:100%; }

.header-actions{ display:flex; align-items:center; gap:14px; }

.nav-toggle{ display:none; flex-direction:column; gap:5px; width:24px; }
.nav-toggle span{ height:2px; background:var(--text); border-radius:2px; transition:0.25s var(--ease); }

/* ============================================
   BUTTONS
   ============================================ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 26px; border-radius:100px;
  font-weight:600; font-size:0.96rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s var(--ease);
}
.btn-primary{
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(108,99,255,0.35);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 12px 32px rgba(108,99,255,0.5); }
.btn-ghost{
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover{ background: rgba(255,255,255,0.04); }
.btn-small{ padding:10px 20px; font-size:0.88rem; }

/* ============================================
   HERO
   ============================================ */
.hero{ padding:88px 0 60px; position:relative; z-index:2; }
.hero-inner{
  display:grid; grid-template-columns: 1.05fr 0.95fr; gap:50px; align-items:center;
}
.eyebrow{
  font-family:var(--font-mono); font-size:0.78rem; letter-spacing:0.12em; text-transform:uppercase;
  color:var(--violet); margin-bottom:18px; font-weight:500;
}
.hero-title{
  font-size:3.4rem; line-height:1.06; font-weight:700; color:var(--text);
}
.hero-title-grad{
  background: var(--grad-flame);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero-sub{
  margin-top:22px; font-size:1.12rem; color:var(--text-dim); max-width:480px; line-height:1.6;
}
.hero-cta{ display:flex; gap:16px; margin-top:34px; flex-wrap:wrap; }
.hero-trust{
  display:flex; align-items:center; gap:12px; margin-top:36px;
  color:var(--text-faint); font-size:0.86rem;
}
.trust-stars{ color:var(--mint); font-size:0.9rem; letter-spacing:1px; }

/* ---- hero interactive stage ---- */
.hero-stage{
  position:relative;
  background: linear-gradient(160deg, var(--surface), var(--bg-2));
  border:1px solid var(--border);
  border-radius: var(--radius-lg);
  padding:42px 32px 52px;
  min-height:480px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px;
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255,255,255,0.04);
}
.stack-zone{
  position:relative; width:220px; height:200px;
}
.img-card{
  position:absolute; width:108px; height:140px; border-radius:14px;
  background: var(--surface-2);
  border:1px solid var(--border-strong);
  box-shadow:0 14px 30px rgba(0,0,0,0.4);
  cursor:pointer; user-select:none;
  transition: transform 0.45s var(--ease), box-shadow 0.3s var(--ease), z-index 0s;
  display:flex; align-items:center; justify-content:center;
}
.img-card:focus-visible{ outline:2px solid var(--violet); outline-offset:3px; }
.ic-ph{ width:56px; height:56px; border-radius:8px; opacity:0.85; }
.ic-ph.mtn{ background: linear-gradient(160deg,#7C9CFF,#4A5FD9); clip-path: polygon(0 100%, 30% 35%, 50% 60%, 70% 20%, 100% 100%); }
.ic-ph.sun{ background: radial-gradient(circle at 30% 30%, #FFD27A, #FF7A45); border-radius:50%; }
.ic-ph.receipt{ background:repeating-linear-gradient(0deg, #C9CEE8 0 4px, transparent 4px 9px); width:40px; height:56px; }
.ic-ph.doc{ background: linear-gradient(160deg,#5EE6B8,#3FA98A); border-radius:6px; }

.ic-1{ top:0; left:10px; transform:rotate(-8deg); z-index:4; }
.ic-2{ top:14px; left:60px; transform:rotate(4deg); z-index:3; }
.ic-3{ top:42px; left:24px; transform:rotate(-3deg); z-index:2; }
.ic-4{ top:56px; left:76px; transform:rotate(9deg); z-index:1; }
.img-card:hover, .img-card:focus-visible{ box-shadow:0 18px 36px rgba(108,99,255,0.4); }

.stage-arrow{
  width:48px; height:20px; color:var(--text-faint); opacity:0.6;
}
.stage-arrow svg{ width:100%; height:100%; }

.pdf-result{ position:relative; width:120px; height:150px; }
.pdf-sheet{
  position:absolute; inset:0; border-radius:10px;
  background: var(--surface-2); border:1px solid var(--border-strong);
}
.pdf-sheet.s3{ transform: translate(6px,6px) rotate(3deg); opacity:0.5; }
.pdf-sheet.s2{ transform: translate(3px,3px) rotate(-2deg); opacity:0.75; }
.pdf-sheet.s1{
  background: linear-gradient(160deg, var(--surface), #10142A);
  display:flex; flex-direction:column; align-items:flex-start; padding:14px 12px;
  box-shadow:0 16px 32px rgba(0,0,0,0.45);
}
.pdf-tag{
  font-family:var(--font-mono); font-size:0.7rem; font-weight:700;
  background:var(--grad-primary); color:#fff; padding:3px 8px; border-radius:6px; letter-spacing:0.04em;
}
.pdf-lines{ margin-top:auto; width:100%; display:flex; flex-direction:column; gap:6px; }
.pdf-lines span{ display:block; height:5px; border-radius:3px; background:rgba(255,255,255,0.14); }
.pdf-lines span.short{ width:60%; }
.pdf-check{
  position:absolute; top:-10px; right:-10px; width:30px; height:30px; border-radius:50%;
  background: var(--mint); color:#0A0D18; font-weight:700; font-size:0.9rem;
  display:flex; align-items:center; justify-content:center;
  opacity:0; transform:scale(0.4); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  box-shadow:0 6px 16px rgba(94,230,184,0.4);
}
.pdf-check.show{ opacity:1; transform:scale(1); }

.stage-hint{
  font-family:var(--font-mono); font-size:0.74rem; color:var(--text-faint);
  letter-spacing:0.02em;
}

/* ============================================
   STAT STRIP
   ============================================ */
.stat-strip{
  border-top:1px solid var(--border); border-bottom:1px solid var(--border);
  padding:36px 0; position:relative; z-index:2;
}
.stat-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:24px; text-align:center;
}
.stat-num{
  display:block; font-family:var(--font-display); font-size:2.1rem; font-weight:700;
  background:var(--grad-primary); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.stat-label{ font-size:0.84rem; color:var(--text-faint); margin-top:4px; display:block; }

/* ============================================
   SECTION HEAD (shared)
   ============================================ */
.section-head{ max-width:640px; margin:0 auto 56px; text-align:center; }
.section-head.left{ margin:0 0 0 0; text-align:left; max-width:320px; }
.section-head h2{ font-size:2.3rem; margin-top:10px; line-height:1.18; }
.section-sub{ color:var(--text-dim); margin-top:16px; font-size:1.04rem; line-height:1.6; }

.how, .features, .premium, .faq{ padding:110px 0; position:relative; z-index:2; }

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-rail{ display:flex; flex-direction:column; gap:90px; }
.how-step{
  display:grid; grid-template-columns: 0.85fr 1.15fr; gap:60px; align-items:center;
}
.how-step.reverse .how-shot{ order:2; }
.how-step.reverse .how-text{ order:1; }
.how-shot{
  border-radius:24px; overflow:hidden; border:1px solid var(--border-strong);
  box-shadow:0 30px 60px rgba(0,0,0,0.45);
  max-width:280px; margin:0 auto;
  transform: rotate(-1.2deg);
  transition: transform 0.4s var(--ease);
}
.how-step.reverse .how-shot{ transform: rotate(1.2deg); }
.how-shot:hover{ transform:rotate(0deg) scale(1.02); }
.how-shot img{ width:100%; display:block; }
.how-mark{
  font-family:var(--font-mono); font-size:0.78rem; color:var(--mint); letter-spacing:0.08em; text-transform:uppercase;
}
.how-text h3{ font-size:1.7rem; margin-top:10px; }
.how-text p{ color:var(--text-dim); margin-top:14px; line-height:1.65; max-width:440px; }

/* ============================================
   FEATURES
   ============================================ */
.feature-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:22px;
}
.feature-card{
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius-md);
  padding:30px 26px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.feature-card:hover{
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.f-icon{ width:42px; height:42px; border-radius:11px; margin-bottom:18px; background:var(--grad-primary); position:relative; }
.f-icon::after{
  content:''; position:absolute; inset:0; border-radius:11px;
  background-size:20px 20px; background-repeat:no-repeat; background-position:center;
}
.f-icon[data-icon="reorder"]::after{ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E"); }
.f-icon[data-icon="size"]::after{ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2'%3E%3Crect x='4' y='3' width='10' height='14' rx='1.5'/%3E%3Cpath d='M14 7h6v14h-10v-4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.f-icon[data-icon="quality"]::after{ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 12h7m0 0a3 3 0 100 6 3 3 0 000-6zM20 6h-7m0 0a3 3 0 110 6 3 3 0 010-6z'/%3E%3C/svg%3E"); }
.f-icon[data-icon="lock"]::after{ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 118 0v4'/%3E%3C/svg%3E"); }
.f-icon[data-icon="preview"]::after{ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.f-icon[data-icon="share"]::after{ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='M8.6 13.5l6.8 4M15.4 6.5l-6.8 4'/%3E%3C/svg%3E"); }

.feature-card h3{ font-size:1.18rem; margin-bottom:8px; }
.feature-card p{ color:var(--text-dim); font-size:0.94rem; line-height:1.55; }

/* ============================================
   PREMIUM
   ============================================ */
.premium{
  background: linear-gradient(180deg, transparent, rgba(108,99,255,0.06), transparent);
}
.premium-grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:60px; align-items:center; }
.premium-list{ margin:28px 0 34px; display:flex; flex-direction:column; gap:14px; }
.premium-list li{ display:flex; align-items:center; gap:12px; font-size:1.02rem; color:var(--text); }
.premium-list li span{
  width:24px; height:24px; border-radius:50%; background:var(--grad-primary);
  display:flex; align-items:center; justify-content:center; font-size:0.78rem; flex-shrink:0; color:#fff;
}
.premium-visual{ display:flex; justify-content:center; }
.premium-card-mock{
  width:100%; max-width:380px; padding:36px 30px;
  background: var(--grad-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(108,99,255,0.4);
  position:relative; overflow:hidden;
}
.premium-card-mock::before{
  content:''; position:absolute; width:200px; height:200px; border-radius:50%;
  background: rgba(255,255,255,0.12); top:-80px; right:-60px;
}
.pcm-badge{
  width:52px; height:52px; border-radius:14px; background:rgba(255,255,255,0.2);
  display:flex; align-items:center; justify-content:center; font-size:1.4rem; margin-bottom:20px; color:#fff;
}
.pcm-title{ font-family:var(--font-display); font-size:1.5rem; font-weight:700; color:#fff; }
.pcm-sub{ color:rgba(255,255,255,0.85); margin-top:6px; }

/* ============================================
   FAQ
   ============================================ */
.faq-wrap{ display:grid; grid-template-columns:0.7fr 1.3fr; gap:60px; }
.faq-list{ display:flex; flex-direction:column; }
.faq-item{ border-bottom:1px solid var(--border); }
.faq-q{
  width:100%; display:flex; align-items:center; justify-content:space-between;
  padding:22px 0; font-size:1.05rem; font-weight:600; text-align:left; color:var(--text);
}
.faq-plus{
  width:20px; height:20px; position:relative; flex-shrink:0; margin-left:20px;
}
.faq-plus::before, .faq-plus::after{
  content:''; position:absolute; background:var(--text-dim); border-radius:2px; transition:0.3s var(--ease);
}
.faq-plus::before{ width:100%; height:2px; top:9px; left:0; }
.faq-plus::after{ width:2px; height:100%; left:9px; top:0; }
.faq-q[aria-expanded="true"] .faq-plus::after{ transform:rotate(90deg); opacity:0; }
.faq-q[aria-expanded="true"] .faq-plus::before{ background:var(--violet); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height 0.35s var(--ease); }
.faq-a p{ padding-bottom:22px; color:var(--text-dim); line-height:1.65; max-width:560px; }

/* ============================================
   CTA FINAL
   ============================================ */
.cta-final{
  padding:120px 0 100px; position:relative; z-index:2; overflow:hidden;
  text-align:center;
}
.cta-inner h2{ font-size:2.6rem; line-height:1.2; }
.cta-inner p{ color:var(--text-dim); margin-top:18px; font-size:1.08rem; }
.store-buttons{ display:flex; gap:16px; justify-content:center; margin-top:38px; flex-wrap:wrap; }
.store-btn{
  display:flex; align-items:center; gap:10px;
  background:var(--surface); border:1px solid var(--border-strong);
  padding:12px 22px; border-radius:14px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.store-btn:hover{ transform:translateY(-3px); background:var(--surface-2); }
.store-btn svg{ width:26px; height:26px; }
.store-btn span{ display:flex; flex-direction:column; text-align:left; font-weight:600; font-size:0.96rem; }
.store-btn small{ font-size:0.68rem; color:var(--text-faint); font-weight:400; }
.cta-stage{ position:relative; height:0; }
.orbit-icon{ display:none; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer{
  border-top:1px solid var(--border);
  padding:64px 0 30px; position:relative; z-index:2;
}
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; }
.footer-brand p{ color:var(--text-faint); margin-top:12px; font-size:0.9rem; }
.footer-col h4{ font-size:0.85rem; color:var(--text-faint); text-transform:uppercase; letter-spacing:0.06em; margin-bottom:16px; font-weight:600; }
.footer-col a{ display:block; color:var(--text-dim); font-size:0.94rem; margin-bottom:12px; transition:color 0.2s; }
.footer-col a:hover{ color:var(--text); }
.footer-bottom{
  display:flex; justify-content:space-between; margin-top:50px; padding-top:24px;
  border-top:1px solid var(--border); font-size:0.84rem; color:var(--text-faint);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 980px){
  .hero-inner, .premium-grid, .faq-wrap{ grid-template-columns:1fr; }
  .how-step, .how-step.reverse{ grid-template-columns:1fr; }
  .how-step.reverse .how-shot, .how-step.reverse .how-text{ order:initial; }
  .hero-title{ font-size:2.6rem; }
  .stat-grid{ grid-template-columns:repeat(2,1fr); gap:32px; }
  .feature-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .section-head.left{ max-width:none; margin-bottom:36px; }
}

@media (max-width: 720px){
  .main-nav{
    position:absolute; top:76px; left:0; right:0;
    background: rgba(10,13,24,0.97); backdrop-filter:blur(16px);
    flex-direction:column; padding:20px 28px; gap:18px;
    border-bottom:1px solid var(--border);
    transform: translateY(-12px); opacity:0; pointer-events:none;
    transition: 0.25s var(--ease);
  }
  .main-nav.open{ transform:translateY(0); opacity:1; pointer-events:auto; }
  .nav-toggle{ display:flex; }
  .header-actions .btn-small{ display:none; }
  .hero{ padding:50px 0 40px; }
  .hero-title{ font-size:2.1rem; }
  .feature-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; gap:30px; }
  .footer-bottom{ flex-direction:column; gap:8px; }
  .section-head h2{ font-size:1.8rem; }
  .cta-inner h2{ font-size:1.9rem; }
  .stack-zone{ transform:scale(0.9); }
}
