/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:      #000;
  --bg-card: #0a0a0a;
  --border:  #1a1a1a;
  --text:    #ededed;
  --text-2:  #888;
  --text-3:  #555;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: #333; color: #fff; }

.container-wide { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-mid  { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.hide-mobile { display: inline; }
@media (max-width: 640px) { .hide-mobile { display: none; } }


/* ═══ NAV ═══ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  height: 48px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 14px; font-weight: 600; color: var(--text);
  text-decoration: none; letter-spacing: -0.01em;
  display: flex; align-items: center;
}
.nav-logo-img { height: auto; width: 200px; display: block; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  text-decoration: none; font-size: 13px; font-weight: 400;
  color: var(--text-2); padding: 6px 10px; border-radius: 5px;
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); }
.nav-toggle {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 16px; height: 1.5px; background: var(--text-2);
  transition: transform .3s, opacity .3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 48px; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.95); flex-direction: column;
    padding: 24px; gap: 0;
    opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 15px; padding: 14px 0; border-bottom: 1px solid var(--border); border-radius: 0; display: block; }
  .nav-links .btn-nav { border-bottom: none; margin-top: 8px; }
}


/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: inherit; font-weight: 500; font-size: 13px;
  text-decoration: none; border: none; border-radius: 6px;
  cursor: pointer; transition: background .15s, border-color .15s;
  padding: 8px 16px; line-height: 1;
}
.btn-white { background: #fff; color: #000; }
.btn-white:hover { background: #e0e0e0; }
.btn-ghost { background: transparent; color: var(--text-2); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: #333; }
.btn-nav { background: transparent; color: var(--text-2); border: 1px solid var(--border); }
.btn-nav:hover { color: var(--text); border-color: #333; }
.btn-lg { padding: 10px 22px; font-size: 14px; }
.btn-full { width: 100%; }


/* ═══ HERO ═══ */
.hero {
  padding: 160px 0 120px; text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
  font-size: 13px; color: var(--text-3); letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700; letter-spacing: -0.05em; line-height: 1.05;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #fff 40%, #666 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 16px; color: var(--text-2); line-height: 1.6;
  max-width: 500px; margin: 0 auto 40px;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 10px; }
@media (max-width: 600px) {
  .hero { padding: 120px 0 80px; }
  .hero h1 { font-size: clamp(32px, 8vw, 48px); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}


/* ═══ SECTIONS ═══ */
.section { padding: 100px 0; border-bottom: 1px solid var(--border); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-header h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.15;
}
.section-label {
  font-size: 13px; color: var(--text-3); margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500;
}
.section-desc {
  font-size: 15px; color: var(--text-2); line-height: 1.7;
  max-width: 500px; margin: 16px auto 0;
}
.section-desc-left {
  font-size: 15px; color: var(--text-2); line-height: 1.7;
  margin: 16px 0 28px;
}


/* ═══ FEATURES GRID ═══ */
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.feature-card {
  padding: 32px 28px; border-right: 1px solid var(--border);
  transition: background .2s;
}
.feature-card:last-child { border-right: none; }
.feature-card:hover { background: var(--bg-card); }
.feature-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature-card p { font-size: 13px; color: var(--text-3); line-height: 1.6; }
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card:nth-child(2) { border-right: none; }
  .feature-card:nth-child(1), .feature-card:nth-child(2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 500px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { border-right: none; border-bottom: 1px solid var(--border); }
  .feature-card:last-child { border-bottom: none; }
}


/* ═══ SPEED SHOWCASE (white section) ═══ */
.speed-showcase {
  position: relative;
  background: #e8e8e8;
  padding: 100px 0;
  z-index: 1;
}

/* Extra space before/after speed section */
.section-before-speed { padding-bottom: 200px; border-bottom: none; }

/* Curve dividers */
.speed-curve {
  position: absolute;
  left: 0;
  width: 100%;
  height: 150px;
  pointer-events: none;
  z-index: 2;
}
.speed-curve-top { bottom: calc(100% - 1px); }
.speed-curve-bottom { top: calc(100% - 1px); }

/* Glow: idle subtle pulse */
.glow-line { opacity: 0.3; transition: opacity 0.3s; }

/* Glow: scroll-triggered flash */
.speed-curve.flashed .glow-line {
  animation: glow-flash 1.2s ease-out forwards;
}
@keyframes glow-flash {
  0% { opacity: 0.3; }
  15% { opacity: 1; }
  40% { opacity: 0.9; }
  100% { opacity: 0.15; }
}

/* After flash, gentle idle pulse */
.speed-curve.flashed.idle .glow-line {
  animation: glow-idle 4s ease-in-out infinite;
}
@keyframes glow-idle {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.4; }
}
.speed-showcase .section-label { color: #666; }
.speed-showcase h2 {
  font-family: 'Geist', sans-serif; font-size: 32px; font-weight: 700;
  color: #111; letter-spacing: -0.035em; margin-bottom: 28px; line-height: 1.2;
}
.speed-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.speed-split-media {
  border-radius: 12px; overflow: hidden;
}
.speed-gif { width: 100%; display: block; }
.speed-split-text { }
.speed-benefits {
  list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 20px;
}
.speed-benefits li {
  display: flex; flex-direction: column; gap: 4px;
  padding-left: 16px; border-left: 2px solid #ccc;
}
.speed-benefits strong { font-size: 14px; font-weight: 600; color: #111; }
.speed-benefits span { font-size: 13px; color: #555; line-height: 1.6; }
.btn-dark {
  display: inline-flex; align-items: center; padding: 10px 22px;
  font-size: 13px; font-weight: 500; border-radius: 6px;
  background: #111; color: #fff; text-decoration: none;
  transition: background .15s;
}
.btn-dark:hover { background: #333; }
@media (max-width: 768px) {
  .speed-showcase { padding: 72px 0; }
  .speed-split { grid-template-columns: 1fr; gap: 32px; }
  .speed-showcase h2 { font-size: 26px; }
  .speed-curve { height: 80px; }
  .section-before-speed { padding-bottom: 140px; }
  .guarantee { padding-top: 140px; }
}


/* ═══ GUARANTEE ═══ */
.guarantee { padding-top: 180px; }
.guarantee .guarantee-inner {
  text-align: center; padding: 80px 48px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-card);
}
.guarantee-inner h2 {
  font-size: clamp(22px, 3vw, 32px); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 16px;
}
.guarantee-inner p {
  font-size: 14px; color: var(--text-2); line-height: 1.7; margin-bottom: 28px;
  max-width: 480px; margin-left: auto; margin-right: auto;
}
.guarantee-inner strong { color: var(--text); }
@media (max-width: 600px) { .guarantee .guarantee-inner { padding: 48px 24px; } }


/* ═══ BIZ LAYOUT ═══ */
.biz-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.biz-text h2 {
  font-size: clamp(24px, 3vw, 36px); font-weight: 600;
  letter-spacing: -0.035em; line-height: 1.15;
}
.biz-cards { display: flex; flex-direction: column; gap: 12px; }
.biz-card {
  padding: 24px; border: 1px solid var(--border); border-radius: 8px;
  transition: background .2s;
}
.biz-card:hover { background: var(--bg-card); }
.biz-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.biz-card p { font-size: 13px; color: var(--text-3); line-height: 1.6; }
@media (max-width: 768px) { .biz-layout { grid-template-columns: 1fr; gap: 40px; } }


/* ═══ TESTIMONIALS SLIDER ═══ */
.testi-slider {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  padding: 4px 0;
  cursor: grab;
}
.testi-slider:active { cursor: grabbing; }
.testi-track {
  display: flex; gap: 16px;
  animation: ticker 60s linear infinite;
  width: max-content;
}
.testi-slider:hover .testi-track,
.testi-slider.dragging .testi-track { animation-play-state: paused; }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.testi-card {
  flex-shrink: 0; width: 360px;
  padding: 24px; display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 8px;
  transition: background .2s;
}
.testi-card:hover { background: var(--bg-card); }
.testi-quote { font-size: 13px; color: var(--text-2); line-height: 1.7; flex: 1; margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.testi-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: #1a1a1a; color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600; flex-shrink: 0;
}
.testi-name { font-size: 13px; font-weight: 500; display: block; }
.testi-company { font-size: 11px; color: var(--text-3); display: block; }
@media (max-width: 600px) { .testi-card { width: 300px; } }


/* ═══ FAQ ═══ */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: none; padding: 18px 0;
  font-family: inherit; font-size: 14px; font-weight: 500; color: var(--text);
  cursor: pointer; text-align: left; transition: color .15s;
}
.faq-q:hover { color: var(--text-2); }
.faq-icon { width: 14px; height: 14px; flex-shrink: 0; transition: transform .25s; color: var(--text-3); }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p { padding-bottom: 18px; font-size: 13px; color: var(--text-3); line-height: 1.7; }


/* ═══ CONTACT FORM ═══ */
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-size: 12px; font-weight: 500; color: var(--text-3); }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit; font-size: 14px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--bg); color: var(--text); outline: none;
  transition: border-color .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: #444; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 3.5l3 3 3-3' stroke='%23555' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
.form-group textarea { resize: vertical; min-height: 100px; }


/* ═══ FOOTER ═══ */
.footer { border-top: 1px solid var(--border); padding: 48px 0 28px; }
.footer a { color: var(--text-3); text-decoration: none; transition: color .15s; }
.footer a:hover { color: var(--text-2); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-logo { font-size: 14px; font-weight: 600; color: var(--text) !important; display: block; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; color: var(--text-3); line-height: 1.5; }
.footer-col h4 { color: var(--text-2); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer-col ul a { font-size: 13px; }
.footer-col p { font-size: 12px; line-height: 1.5; color: var(--text-3); }
.footer-company { font-weight: 500; color: var(--text-2); margin-bottom: 2px; }
.footer-social { display: flex; gap: 6px; }
.footer-social a {
  width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; transition: border-color .15s;
}
.footer-social a:hover { border-color: #333; }
.footer-social svg { width: 13px; height: 13px; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--text-3);
}
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: 12px; }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }


/* ═══ LEGAL PAGES ═══ */
.legal-page { padding-top: 120px; }
.legal-title {
  font-family: 'Geist', sans-serif; font-size: 36px; font-weight: 700;
  color: var(--text); letter-spacing: -0.035em; margin-bottom: 40px;
}
.legal-content h2 {
  font-family: 'Geist', sans-serif; font-size: 16px; font-weight: 600;
  color: var(--text); margin: 32px 0 12px; letter-spacing: -0.02em;
}
.legal-content p {
  font-size: 14px; line-height: 1.8; color: var(--text-2); margin-bottom: 12px;
}
.legal-content ul {
  list-style: none; padding: 0; margin: 0 0 16px;
}
.legal-content li {
  font-size: 14px; line-height: 1.8; color: var(--text-2);
  padding-left: 16px; position: relative; margin-bottom: 6px;
}
.legal-content li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--text-3);
}
.legal-content a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--text-2); }
.legal-content strong { color: var(--text); font-weight: 500; }
@media (max-width: 768px) {
  .legal-page { padding-top: 100px; }
  .legal-title { font-size: 28px; }
}


/* ═══ REVEAL ═══ */
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section-header { margin-bottom: 40px; }
}
