/* ============================================================
   ForceNotes — landing page styles
   Palette: #0f0f1a / #1a1a2e / #16213e / #0f3460 / #0088CC / #F97316
   ============================================================ */

:root {
  --bg: #0b0b14;
  --bg-2: #0f0f1a;
  --bg-3: #1a1a2e;
  --bg-4: #16213e;
  --bg-5: #0f3460;
  --text: #e8e8f0;
  --text-dim: #a8a8c0;
  --text-mute: #7a7a94;
  --accent: #0088cc;
  --accent-2: #f97316;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: rgba(0, 136, 204, 0.35); }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(11, 11, 20, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo { display: flex; align-items: center; gap: 10px; }

.logo-mark {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--bg-5));
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(0, 136, 204, 0.35);
}

.logo-text { font-weight: 800; font-size: 17px; letter-spacing: -0.3px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--text-dim);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: #fff; }

.nav-cta {
  color: #fff !important;
  background: var(--accent);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: #0099e6; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(0, 136, 204, 0.22), transparent 60%),
    radial-gradient(700px 450px at 0% 20%, rgba(15, 52, 96, 0.5), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(700px 420px at 80% 0%, #000 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-kicker .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-2);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.06;
  margin-bottom: 20px;
}
.hero-title .accent {
  background: linear-gradient(90deg, var(--accent), #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 560px;
  margin-bottom: 30px;
}
.hero-sub strong { color: #fff; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0099e6);
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 136, 204, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(0, 136, 204, 0.5); }
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.08); }
.btn-lg { padding: 16px 32px; font-size: 16px; }

.hero-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  color: var(--text-mute);
  font-size: 14px;
}
.hero-stats span {
  display: block;
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

/* --- Phone mockup --- */
.hero-visual { position: relative; display: flex; justify-content: center; }

.phone {
  width: 258px;
  border-radius: 42px;
  padding: 12px;
  background: linear-gradient(160deg, #23233a, #10101c 60%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  transform: perspective(1400px) rotateY(-8deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.phone:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }

.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 24px;
  background: #05050a;
  border-radius: 16px;
  z-index: 2;
}

.phone img {
  border-radius: 32px;
  width: 100%;
  aspect-ratio: 576 / 1280;
  object-fit: cover;
}

.phone-caption {
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--text-mute);
  white-space: nowrap;
}

.float-chip {
  position: absolute;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(26, 26, 46, 0.9);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  animation: floaty 5s ease-in-out infinite;
  white-space: nowrap;
}
.chip-1 { top: 6%; right: -8%; }
.chip-2 { bottom: 16%; left: -14%; animation-delay: 1.2s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------------- Sections ---------------- */
.section { padding: 96px 0; position: relative; }
.section-alt {
  background: linear-gradient(180deg, var(--bg-2), rgba(22, 33, 62, 0.25), var(--bg-2));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.8px;
  text-align: center;
  margin-bottom: 14px;
}
.section-sub {
  text-align: center;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 52px;
  font-size: 16px;
}

/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 136, 204, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.feature-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 20px;
  color: var(--ic, var(--accent));
  background: color-mix(in srgb, var(--ic, var(--accent)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--ic, var(--accent)) 30%, transparent);
  border-radius: 12px;
  margin-bottom: 16px;
}

.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-dim); font-size: 14.5px; }

/* --- Steps --- */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
  transition: transform 0.25s;
}
.step:hover { transform: translateY(-4px); }

.step-num {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0, 136, 204, 0.12);
  border: 1px solid rgba(0, 136, 204, 0.3);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  margin-bottom: 18px;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 14.5px; }

/* --- Mechanic --- */
.mechanic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.mechanic-card {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.mechanic-card:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.mechanic-num {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-2);
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.3);
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  margin-bottom: 16px;
}

.mechanic-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.mechanic-card p { color: var(--text-dim); font-size: 14.5px; }

/* --- Gallery --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  justify-items: center;
}

.phone-frame {
  width: 190px;
  border-radius: 30px;
  padding: 8px;
  background: linear-gradient(160deg, #23233a, #10101c 60%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  cursor: zoom-in;
  transition: transform 0.25s, border-color 0.25s;
  position: relative;
  font: inherit;
  overflow: hidden;
}
.phone-frame:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(0, 136, 204, 0.5);
}
.phone-frame::before {
  content: "";
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 16px;
  background: #05050a;
  border-radius: 10px;
  z-index: 2;
}
.phone-frame img {
  border-radius: 22px;
  width: 100%;
  aspect-ratio: 576 / 1280;
  object-fit: cover;
  transition: transform 0.3s;
}
.phone-frame:hover img { transform: scale(1.03); }

/* --- About --- */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-copy .section-title { text-align: left; margin-bottom: 18px; }
.about-copy p { color: var(--text-dim); font-size: 15.5px; margin-bottom: 14px; }
.about-copy strong { color: #fff; }

.about-list { list-style: none; margin-top: 18px; }
.about-list li {
  padding-left: 26px;
  position: relative;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 10px;
}
.about-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.code-block {
  background: #0a0a12;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.code-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.code-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green { background: #28c840; }
.code-file {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-mute);
}
.code-block pre {
  padding: 20px 22px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: #cdd3e0;
}
.code-block .k { color: #c678dd; }
.code-block .t { color: #61afef; }
.code-block .n { color: #d19a66; }
.code-block .s { color: #98c379; }
.code-block .c { color: #5c6370; font-style: italic; }

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.tech-tags span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
}

/* --- CTA --- */
.cta {
  background:
    radial-gradient(700px 380px at 50% 110%, rgba(0, 136, 204, 0.25), transparent 70%),
    var(--bg-2);
  text-align: center;
}
.cta-inner { max-width: 720px; }
.cta-title { font-size: clamp(28px, 4vw, 42px); font-weight: 900; letter-spacing: -0.8px; margin-bottom: 14px; }
.cta-sub { color: var(--text-dim); font-size: 16px; margin-bottom: 34px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* --- Footer --- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 50px 0 26px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.6fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 34px;
}
.footer-brand .logo-mark { margin-bottom: 12px; display: inline-block; }
.footer-brand p { color: var(--text-mute); font-size: 14px; max-width: 300px; }

.footer-nav, .footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-links a {
  color: var(--text-dim);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
  color: var(--text-mute);
  font-size: 13px;
  flex-wrap: wrap;
}
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: #fff; }

/* ---------------- Lightbox ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 5, 10, 0.92);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }

.lightbox-close {
  position: absolute;
  top: 18px; right: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.18); transform: rotate(90deg); }

.lightbox-figure {
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.lightbox-figure img {
  height: 82vh;
  max-width: 100%;
  width: auto;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border);
}
.lightbox-figure figcaption { color: var(--text-dim); font-size: 15px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 80px; }
  .hero-visual { order: -1; margin-top: 20px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .mechanic-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 44px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-header { position: sticky; }
  .nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11, 11, 20, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 8px 6vw 18px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
  .nav-cta { text-align: center; margin-top: 12px; border: 0; }
  .nav-toggle { display: flex; }

  .hero { padding-top: 90px; }
  .hero-stats { gap: 18px; }
  .features-grid { grid-template-columns: 1fr; }
  .mechanic-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .float-chip { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
