/* ============================================================
   FOKUS LANDING — "Analog Studio" mở rộng cho khổ trang lớn.
   Cùng DNA với extension: giấy kem, mực đen, đỏ cà chua,
   Fraunces + IBM Plex Mono, nút lún, đường viền đậm, grain.
   ============================================================ */

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/fraunces-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/fraunces-600-vietnamese.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 900; font-display: swap; src: url('fonts/fraunces-900-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 900; font-display: swap; src: url('fonts/fraunces-900-vietnamese.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/plexmono-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/plexmono-400-vietnamese.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/plexmono-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/plexmono-600-vietnamese.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

:root {
  --paper: #F6F1E7;
  --paper-warm: #EFE7D6;
  --paper-deep: #E5DAC3;
  --ink: #1A1714;
  --ink-soft: #4A4238;
  --ink-faint: #8A7F6E;
  --tomato: #E4572E;
  --tomato-deep: #B93E1C;
  --sage: #7A8B6F;
  --mustard: #D9A62E;
  --line: 2px solid var(--ink);
  --shadow-press: 3px 3px 0 var(--ink);
  --shadow-card: 6px 6px 0 var(--ink);
  --radius: 14px;
  --radius-sm: 8px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.grain::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

.label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-faint);
}
.section-label { display: block; margin-bottom: 40px; color: var(--tomato-deep); }

/* Nút analog */
.btn {
  display: inline-block;
  font-family: var(--font-mono); font-weight: 600; font-size: 14px;
  letter-spacing: 0.04em; color: var(--ink);
  background: var(--paper); border: var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-press);
  padding: 10px 18px; cursor: pointer; text-decoration: none;
  transition: transform 80ms ease, box-shadow 80ms ease, background 150ms ease;
  user-select: none;
}
.btn:hover { background: var(--paper-warm); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn.primary { background: var(--tomato); color: var(--paper); }
.btn.primary:hover { background: var(--tomato-deep); }
.btn.big { font-size: 16px; padding: 15px 28px; box-shadow: 5px 5px 0 var(--ink); }
.btn.big:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }

::selection { background: var(--mustard); color: var(--ink); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.8, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .rec-dot, .mascot-eyes { animation: none !important; }
}

/* ---------------------------------------------------- NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 28px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: var(--line);
}
.nav-logo {
  font-family: var(--font-display); font-weight: 900; font-size: 26px;
  color: var(--ink); text-decoration: none; letter-spacing: -0.02em;
}
.dot { color: var(--tomato); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em;
}
.nav-links a:hover { color: var(--tomato-deep); text-decoration: underline; text-underline-offset: 4px; }
.nav-cta { font-size: 13px; padding: 8px 14px; }

/* ---------------------------------------------------- HERO */
.hero {
  max-width: 1080px; margin: 0 auto;
  padding: 84px 24px 72px;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px;
  align-items: center;
}
.hero-label { color: var(--tomato-deep); margin-bottom: 18px; }
.hero-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(44px, 6.5vw, 76px);
  line-height: 1.0; letter-spacing: -0.025em;
  margin-bottom: 22px;
}
.hero-title em { font-style: italic; color: var(--tomato); }
.hero-sub { font-size: 16px; color: var(--ink-soft); max-width: 46ch; margin-bottom: 28px; }
.hero-trust { font-size: 12px; color: var(--ink-faint); margin-top: 16px; letter-spacing: 0.03em; }

.hero-visual { position: relative; justify-self: center; }
.shot-frame {
  background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.shot-frame img { display: block; width: 100%; height: auto; }
.shot-bar {
  display: flex; gap: 6px; padding: 9px 12px;
  border-bottom: 2px solid var(--ink); background: var(--paper-warm);
}
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); }
.shot-bar span:nth-child(1) { background: var(--tomato); }
.shot-bar span:nth-child(2) { background: var(--mustard); }
.shot-bar span:nth-child(3) { background: var(--sage); }
.hero-visual .shot-frame { width: 300px; }
.tilt-l { transform: rotate(-2deg); }
.tilt-r { transform: rotate(1.6deg); }

.sticker {
  position: absolute;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  background: var(--paper); border: var(--line); border-radius: 999px;
  box-shadow: var(--shadow-press);
  padding: 7px 14px;
}
.sticker-rec { top: -16px; left: -46px; transform: rotate(-6deg); display: flex; align-items: center; gap: 8px; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tomato); animation: blink 1.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.15; } }
.sticker-25 {
  bottom: 24px; right: -38px; transform: rotate(5deg);
  font-family: var(--font-display); font-weight: 900; font-size: 22px;
  background: var(--mustard); border-radius: var(--radius-sm); padding: 6px 14px;
}

/* ---------------------------------------------------- MARQUEE */
.marquee {
  border-top: var(--line); border-bottom: var(--line);
  background: var(--ink); color: var(--paper);
  overflow: hidden; white-space: nowrap;
  padding: 11px 0;
}
.marquee-track { display: inline-block; animation: scroll 26s linear infinite; }
.marquee-track span {
  font-size: 13px; font-weight: 600; letter-spacing: 0.22em;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------------------------------------------------- PHILOSOPHY */
.philosophy { padding: 96px 0 84px; text-align: center; }
.phil-line {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(20px, 2.6vw, 28px); line-height: 1.5;
  color: var(--ink-soft);
}
.phil-line.strong { color: var(--ink); font-weight: 900; margin-top: 10px; }
.browser-row {
  margin-top: 40px;
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.browser-chip {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  border: var(--line); border-radius: 999px; padding: 5px 14px;
  background: var(--paper-warm);
}

/* ---------------------------------------------------- PROBLEM */
.problem { background: var(--paper-warm); border-top: var(--line); border-bottom: var(--line); padding: 84px 0; }
.problem-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px; align-items: center; }
.problem-list { list-style: none; margin: 20px 0 26px; display: flex; flex-direction: column; gap: 12px; }
.problem-list li {
  font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.45;
}
.problem-list li::before { content: '✗ '; color: var(--tomato); font-family: var(--font-mono); }
.problem-answer { color: var(--ink-soft); max-width: 52ch; }
.problem-answer strong { color: var(--ink); }
.mascot { text-align: center; }
.mascot-eyes { animation: peek 5s ease-in-out infinite; transform-origin: 100px 106px; }
@keyframes peek { 0%, 88%, 100% { transform: none; } 92%, 96% { transform: translateY(2px) scaleY(0.12); } }
.mascot-caption { margin-top: 8px; font-size: 12px; color: var(--ink-faint); letter-spacing: 0.08em; }

/* ---------------------------------------------------- FEATURES */
.features { padding: 96px 0 40px; }
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center; margin-bottom: 100px;
}
.feature.flip .feature-copy { order: 2; }
.feature.flip .feature-visual { order: 1; }
.feature-no { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; color: var(--tomato-deep); margin-bottom: 10px; }
.feature h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.feature-copy > p { color: var(--ink-soft); margin-bottom: 18px; }
.feature-copy strong { color: var(--ink); }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.check-list li { padding-left: 26px; position: relative; font-size: 14px; }
.check-list li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--paper); background: var(--sage);
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink);
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; top: 2px;
}
.feature-visual { justify-self: center; }
.feature-visual .shot-frame { width: 300px; }
.feature-visual .shot-frame.wide { width: 100%; max-width: 460px; }
.feature-visual .shot-frame.crop { width: 100%; max-width: 400px; max-height: 420px; }
.feature-visual .shot-frame.crop img { object-fit: cover; object-position: top; height: 420px; }

/* ---------------------------------------------------- MANIFESTO */
.manifesto {
  background: var(--tomato); color: var(--paper);
  border-top: var(--line); border-bottom: var(--line);
  padding: 96px 0; text-align: center;
}
.manifesto-quote {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(30px, 4.6vw, 52px); line-height: 1.15; letter-spacing: -0.02em;
}
.manifesto-sub { margin-top: 20px; font-size: 13px; opacity: 0.85; letter-spacing: 0.05em; }

/* ---------------------------------------------------- TESTIMONIALS */
.testimonials { padding: 96px 0; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card {
  background: var(--paper); border: var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-press);
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.testi-card:nth-child(odd) { transform: rotate(-0.5deg); }
.testi-card:nth-child(even) { transform: rotate(0.5deg); }
.testi-card blockquote { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; line-height: 1.5; }
.testi-card figcaption { font-size: 12px; color: var(--ink-faint); margin-top: auto; }

/* ---------------------------------------------------- FAQ */
.faq { padding: 20px 0 96px; }
.faq-item {
  border: var(--line); border-radius: var(--radius-sm);
  background: var(--paper); box-shadow: var(--shadow-press);
  margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  font-weight: 600; font-size: 15px;
  padding: 16px 48px 16px 18px;
  position: relative; user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display); font-size: 22px; color: var(--tomato);
  transition: transform 200ms ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item[open] summary { border-bottom: 1px dashed color-mix(in srgb, var(--ink) 30%, transparent); }
.faq-item p { padding: 14px 18px 18px; color: var(--ink-soft); font-size: 14px; }
.faq-item summary:hover { background: var(--paper-warm); }

/* ---------------------------------------------------- FINAL CTA */
.final-cta {
  background: var(--paper-warm);
  border-top: var(--line);
  padding: 96px 0; text-align: center;
}
.final-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(34px, 5vw, 58px); line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 32px;
}

/* ---------------------------------------------------- FOOTER */
.footer { background: var(--ink); color: var(--paper); padding: 56px 0 28px; }
.footer .nav-logo { color: var(--paper); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 25%, transparent);
}
.footer-tag { font-size: 13px; color: color-mix(in srgb, var(--paper) 65%, transparent); margin-top: 6px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col .label { color: color-mix(in srgb, var(--paper) 50%, transparent); margin-bottom: 4px; }
.footer-col a { color: var(--paper); text-decoration: none; font-size: 13px; }
.footer-col a:hover { color: var(--mustard); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 22px;
  font-size: 12px; color: color-mix(in srgb, var(--paper) 55%, transparent);
}

/* ---------------------------------------------------- RESPONSIVE */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-visual { margin-top: 12px; }
  .sticker-rec { left: -10px; }
  .sticker-25 { right: -10px; }
  .problem-grid { grid-template-columns: 1fr; text-align: left; }
  .mascot { order: -1; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 32px; margin-bottom: 72px; }
  .feature.flip .feature-copy { order: 1; }
  .feature.flip .feature-visual { order: 2; }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
