/* Optic Media — site styles */
:root {
  --ink: #0b1530;
  --text: #3b4660;
  --muted: #6b7590;
  --line: #e5e9f1;
  --soft: #f5f7fb;
  --bg: #ffffff;
  --blue: #1d63d6;
  --blue-deep: #0b3a8c;
  --purple: #7a3fd0;
  --red: #e2452b;
  --radius: 14px;
  --max: 1120px;
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand img { height: 54px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--blue); text-decoration: none; }
.nav-links .btn { color: #fff; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  transition: background .2s, transform .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--blue); border-color: var(--blue); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 96px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--blue); border-radius: 2px; }
.hero h1 { font-size: clamp(36px, 5vw, 62px); font-weight: 700; letter-spacing: -0.02em; margin: 18px 0 22px; }
.hero h1 .dot { display: inline-block; width: .2em; height: .2em; border-radius: 50%; margin: 0 .14em .08em; vertical-align: middle; }
.dot-blue { background: var(--blue); }
.dot-purple { background: var(--purple); }
.dot-red { background: var(--red); }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--text); max-width: 34em; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.lens-wrap { display: flex; justify-content: center; }
.lens {
  position: relative; width: min(340px, 72vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #0b1530 0 38%, #13306f 46%, #1d63d6 66%, #3a8bff 74%, #0b3a8c 100%);
  box-shadow: 0 30px 80px -20px rgba(29, 99, 214, .45), inset 0 0 0 10px rgba(255,255,255,.04);
}
.lens::before { /* highlight */
  content: ""; position: absolute; width: 22%; height: 22%; left: 24%; top: 22%;
  border-radius: 50%; background: #fff; box-shadow: 0 0 30px rgba(255,255,255,.35);
}
.lens::after { /* outer ring */
  content: ""; position: absolute; inset: -22px; border-radius: 50%;
  border: 1px solid var(--line);
}
.lens-ring { position: absolute; inset: -52px; border-radius: 50%; border: 1px dashed #dfe5ef; }
.arc {
  height: 4px; width: 100%; max-width: 420px; margin-top: 44px; border-radius: 4px;
  background: linear-gradient(90deg, rgba(29,99,214,0), var(--blue) 18%, var(--purple) 55%, var(--red) 85%, rgba(226,69,43,0));
}

/* ---------- Sections ---------- */
section { scroll-margin-top: 88px; }
.section { padding: 96px 0; }
.section-soft { background: var(--soft); }
.section-tight { padding: 0 0 96px; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: -0.015em; margin: 14px 0 14px; }
.section-head p { margin: 0; color: var(--text); font-size: 17px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: start; }
.about-text p { margin: 0 0 18px; font-size: 17px; }
.facts { margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.facts div { display: flex; flex-direction: column; gap: 2px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: #d3dbea; box-shadow: 0 20px 40px -24px rgba(11,21,48,.25); }
.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px;
  background: #eef3fd; color: var(--blue);
}
.icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.card p { margin: 0; font-size: 15px; color: var(--text); }

/* Approach */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 32px 32px 8px 0; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
.step-num { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.step-num .dot { width: 10px; height: 10px; border-radius: 50%; }
.step h3 { font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.step p { margin: 0; }

/* Apps band */
.band {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 44px 48px; border-radius: 20px; background: var(--ink); color: #c9d2e6;
  position: relative; overflow: hidden;
}
.band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--red));
}
.band h2 { color: #fff; font-size: clamp(24px, 3vw, 30px); margin-bottom: 10px; }
.band p { margin: 0; max-width: 36em; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18); color: #fff; font-weight: 500; font-size: 14px; white-space: nowrap;
}
.badge svg { width: 18px; height: 18px; }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.work-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: inherit; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.work-card:hover { text-decoration: none; transform: translateY(-4px); border-color: #d3dbea; box-shadow: 0 20px 40px -24px rgba(11,21,48,.25); }
.work-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; height: 104px; }
.work-top-blue { background: linear-gradient(135deg, #0b1530 0%, #13306f 55%, #1d63d6 100%); }
.work-top-red { background: linear-gradient(135deg, #0b1530 0%, #4a2a8a 55%, #e2452b 100%); }
.yt { width: 52px; height: 52px; border-radius: 14px; background: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.yt svg { width: 30px; height: 30px; }
.work-tag { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; padding: 6px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; }
.work-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.work-body h3 { font-size: 20px; font-weight: 700; }
.handle { font-size: 14px; color: var(--muted); margin: 2px 0 12px; }
.work-body p { margin: 0 0 20px; font-size: 15px; }
.work-link { margin-top: auto; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--blue); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; background: #fff; }
.contact-item .label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.contact-item .value { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 17px; word-break: break-word; }
.contact-item a.value:hover { color: var(--blue); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 500;
}
.chip svg { width: 15px; height: 15px; }
.chip:hover { text-decoration: none; border-color: var(--blue); color: var(--blue); }
.chip-wa { background: #25d366; border-color: #25d366; color: #fff; }
.chip-wa:hover { background: #1ebe5b; border-color: #1ebe5b; color: #fff; }
.contact-item small { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand img { height: 40px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--text); font-size: 14px; }
.footer-links a:hover { color: var(--blue); }
.copyright { width: 100%; font-size: 13px; color: var(--muted); margin: 8px 0 0; }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 96px; }
.legal .container { max-width: 780px; }
.legal h1 { font-size: clamp(32px, 4.5vw, 44px); font-weight: 700; letter-spacing: -0.015em; margin: 14px 0 10px; }
.legal .updated { color: var(--muted); font-size: 15px; margin: 0 0 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal h2 { font-size: 21px; font-weight: 600; margin: 40px 0 12px; }
.legal h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 16px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .contact-box { margin-top: 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.legal .contact-box p { margin: 0 0 4px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 80px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
    display: none;
  }
  .nav-open .nav-links { display: flex; }
  .nav-links li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-links li:last-child a { border-bottom: 0; margin-top: 16px; display: flex; }

  .hero { padding: 48px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .lens-wrap { display: none; }
  .lens::after { inset: -16px; }
  .lens-ring { inset: -36px; }
  .arc { margin-top: 36px; }

  .section { padding: 72px 0; }
  .section-tight { padding: 0 0 72px; }
  .section-head { margin-bottom: 36px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .step, .step + .step { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .contact-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .band { padding: 36px 28px; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .nav { height: 68px; }
  .nav-links { top: 68px; padding: 8px 16px 20px; }
  .brand img { height: 46px; }
  .cards { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
