/* ==========================================================================
   Gokamu marketing site layout: header, hero, sections, footer.
   In Next.js: src/app/(site)/site.module.css
   ========================================================================== */

/* ── Logo ─────────────────────────────────────────────────────────────── */
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 34px; width: auto; filter: var(--logo-filter); mix-blend-mode: var(--logo-blend); }
.logo img.keep { filter: none; }

/* ── Announcement strip (Cloudflare/GitLab pattern) ───────────────────── */
.strip { background: var(--band); color: var(--band-fg); font-size: var(--t-xs); }
.strip .wrap { display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 40px; text-align: center; flex-wrap: wrap; padding-block: 6px; }
.strip a { color: var(--volt); font-weight: 600; text-decoration: none; }
.strip a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Header + mega nav ────────────────────────────────────────────────── */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.nav { display: flex; gap: 2px; align-items: center; margin-right: auto; }
.nav > li { list-style: none; position: relative; }
.nav { padding: 0; margin-block: 0; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: var(--r-pill); font-weight: 600; font-size: var(--t-sm); text-decoration: none; color: var(--fg); background: none; border: 0; cursor: pointer; }
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--surface-2); }
.nav-link[aria-current="page"] { color: var(--indigo); }
.nav-link .chev { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--d-med); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.head-actions { display: flex; align-items: center; gap: 8px; }

.mega {
  position: absolute; top: calc(100% + 14px); left: -12px; width: min(760px, 92vw);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-3);
  display: grid; grid-template-columns: 1.6fr 1fr; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all var(--d-med) var(--ease);
}
.mega.open { opacity: 1; visibility: visible; transform: none; }
.mega .cols { padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega .item { display: flex; gap: 14px; padding: 12px; border-radius: var(--r-md); text-decoration: none; }
.mega .item:hover { background: var(--surface-2); }
.mega .item .ico { color: var(--indigo); margin-top: 2px; }
.mega .item b { display: block; font-size: var(--t-sm); }
.mega .item span { display: block; font-size: var(--t-xs); color: var(--muted); line-height: 1.45; }
.mega aside { background: var(--band); color: var(--band-fg); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.mega aside p { font-size: var(--t-sm); color: var(--band-muted); }

.theme-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); display: grid; place-items: center; cursor: pointer; }
.theme-btn:hover { border-color: var(--line-strong); }
.theme-btn .ico { width: 18px; height: 18px; }
.burger { display: none; }

@media (max-width: 980px) {
  .nav, .head-actions .hide-m { display: none; }
  .burger { display: grid; }
  .site-head .wrap { justify-content: space-between; }
  .nav.open { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 72px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 24px; gap: 4px; box-shadow: var(--shadow-3); max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav.open .nav-link { width: 100%; justify-content: space-between; height: 48px; font-size: var(--t-md); }
  .nav.open .mega { position: static; width: 100%; grid-template-columns: 1fr; box-shadow: none; transform: none; display: none; border-radius: var(--r-lg); margin: 4px 0 8px; }
  .nav.open .mega.open { display: grid; }
  .nav.open .mega .cols { grid-template-columns: 1fr; padding: 8px; }
  .nav.open .mega aside { display: none; }
}

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding-block: var(--section); }
.section.tight { padding-block: clamp(48px, 6vw, 80px); }
.band { background: var(--band); color: var(--band-fg); position: relative; overflow: hidden; }
.band .lead, .band .muted { color: var(--band-muted); }
.sec-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head h2 { font-size: var(--t-h2); }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.sec-head.split { max-width: none; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 32px; }
@media (max-width: 860px) { .sec-head.split { grid-template-columns: 1fr; } }

.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1060px) { .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

/* Dot-grid texture used behind heroes & bands (a quiet network field) */
.dots { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle, var(--line-strong) 1.2px, transparent 1.6px); background-size: 26px 26px; mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%); opacity: .55; }
.band .dots { background-image: radial-gradient(circle, rgba(255,255,255,.18) 1.2px, transparent 1.6px); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; padding-block: clamp(56px, 8vw, 112px) clamp(48px, 7vw, 96px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; position: relative; }
.hero h1 { font-size: var(--t-display); line-height: .94; letter-spacing: -.025em; }
.hero .lead { margin-top: 24px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero .meta { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero .meta div { display: grid; gap: 2px; }
.hero .meta b { font-size: var(--t-md); }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: 1fr; } .hero .mesh { max-width: 560px; margin-inline: auto; } }

/* The mesh: hub + service nodes joined by monoline routes with travelling packets */
.mesh { width: 100%; height: auto; overflow: visible; }
.mesh .route-line { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-linecap: round; }
.mesh .packet { fill: none; stroke: var(--indigo); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 5 100; animation: travel 3.6s linear infinite; }
.mesh .packet.v { stroke: var(--volt-2); }
.mesh .node-lobe { fill: var(--ink); }
.mesh .node-ring { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; }
.mesh .node-label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; fill: var(--fg); font-weight: 500; }
.mesh .node-ico { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mesh .hub-ico { fill: none; stroke: var(--on-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mesh .sat { transition: transform var(--d-med) var(--ease-spring); transform-box: fill-box; transform-origin: center; }
.mesh .sat:hover { transform: scale(1.08); }
.mesh .sat:hover .node-ring { stroke: var(--indigo); stroke-width: 2.5; }
@keyframes travel { from { stroke-dashoffset: 105; } to { stroke-dashoffset: 0; } }

/* ── Signal band: proof points in a row ───────────────────────────────── */
.signals { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.signals > div { padding: 28px 24px; border-left: 1px solid var(--line); display: grid; gap: 6px; }
.signals > div:first-child { border-left: 0; padding-left: 0; }
.signals b { font-size: var(--t-h4); font-stretch: 85%; font-weight: 700; }
.signals span { color: var(--muted); font-size: var(--t-sm); }
@media (max-width: 860px) { .signals { grid-template-columns: 1fr 1fr; } .signals > div:nth-child(3) { border-left: 0; padding-left: 0; } .signals > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .signals { grid-template-columns: 1fr; } .signals > div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } .signals > div:first-child { border-top: 0; } }

/* ── Platform explorer (tabbed services, GitLab-style) ────────────────── */
.explorer { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 40px; }
.explorer .panel { display: grid; gap: 20px; }
.explorer .panel h3 { font-size: var(--t-h3); }
.explorer ul.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.explorer ul.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-sm); }
.explorer ul.checks li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; margin-top: 2px; background: var(--volt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%2310094C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 9.2l2.3 2.3 4.7-4.9'/%3E%3C/svg%3E"); }
.band .explorer ul.checks li { color: var(--band-fg); }
.screen { border-radius: var(--r-xl); background: rgba(255,255,255,.04); border: 1px solid var(--band-line); padding: 14px; }
.screen-inner { border-radius: var(--r-lg); background: var(--surface); color: var(--fg); overflow: hidden; min-height: 320px; }
@media (max-width: 900px) { .explorer { grid-template-columns: 1fr; } }

/* ── Big CTA ──────────────────────────────────────────────────────────── */
.cta-block { border-radius: var(--r-xl); background: var(--band); color: var(--band-fg); padding: clamp(36px, 6vw, 72px); position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: end; }
.cta-block h2 { font-size: var(--t-h1); max-width: 14ch; }
.cta-block .ctas { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }
.cta-block .blob { position: absolute; right: -60px; top: -80px; width: 340px; opacity: .14; pointer-events: none; }
@media (max-width: 860px) { .cta-block { grid-template-columns: 1fr; } }

/* ── Page header (inner pages) ────────────────────────────────────────── */
.page-head { position: relative; padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-head .wrap { position: relative; display: grid; gap: 20px; }
.page-head h1 { font-size: var(--t-h1); max-width: 18ch; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-foot { background: var(--band); color: var(--band-fg); padding-top: clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.foot-top { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; padding-bottom: 48px; border-bottom: 1px solid var(--band-line); }
.foot-top h4 { font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .06em; text-transform: uppercase; font-weight: 500; color: var(--band-muted); margin-bottom: 16px; }
.foot-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-top a { color: var(--band-fg); text-decoration: none; font-size: var(--t-sm); }
.foot-top a:hover { color: var(--volt); }
.foot-brand { display: grid; gap: 18px; align-content: start; }
.foot-brand p { color: var(--band-muted); font-size: var(--t-sm); max-width: 32ch; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px 32px; font-size: var(--t-xs); color: var(--band-muted); }
.foot-word { font-stretch: 62%; font-weight: 800; font-size: clamp(5rem, 22vw, 19rem); line-height: .78; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1.5px var(--band-line); margin-bottom: -.06em; text-align: center; user-select: none; white-space: nowrap; }
@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ── Reveal on scroll ─────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Light "screen" islands inside dark bands reset to surface colours */
.band .screen-inner .card { background: var(--surface); border-color: var(--line); color: var(--fg); }
.band .screen-inner .card p, .band .screen-inner .muted { color: var(--muted); }

/* FAQ: heading left, questions right */
.faq-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 80px); }
@media (max-width: 860px) { .faq-split { grid-template-columns: 1fr; } }

/* ── Services page ────────────────────────────────────────────────────── */
.svc-sub { position: sticky; top: 72px; z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.svc-sub .tabs-line { border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line); }
.svc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(24px, 5vw, 72px); padding-block: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.svc-intro { display: grid; gap: 16px; align-content: start; position: sticky; top: 150px; }
.svc-intro h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
.svc-body { display: grid; gap: 22px; align-content: start; }
.caps { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) { .svc-row { grid-template-columns: 1fr; } .svc-intro { position: static; } }

/* ── About page ───────────────────────────────────────────────────────── */
.about-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
@media (max-width: 860px) { .about-split { grid-template-columns: 1fr; } }

/* ── Contact page ─────────────────────────────────────────────────────── */
.contact-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.form-card { padding: clamp(24px, 4vw, 40px); gap: 28px; }
.form-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }
.card .card-foot, .form-card p { color: inherit; }
.map-card { padding: 12px; gap: 14px; } .map-card > div { padding: 0 12px 12px; }
.card h3 + p, .card div > p { margin-top: 2px; }
@media (max-width: 900px) { .contact-split { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* Rhythm: first section after a page header needs less top padding */
.page-head + .section { padding-top: clamp(40px, 5vw, 72px); }
.input-group .input { height: 47px; }

/* ── Products: feature panel with phone screenshots ───────────────────── */
.mega-sm { width: min(400px, 92vw); grid-template-columns: 1fr; }
.product-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(28px, 5vw, 64px); overflow: hidden; position: relative; }
.pf-copy { display: grid; gap: 20px; align-content: start; }
.pf-copy h2 { font-size: var(--t-h2); }
.pf-copy .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.pf-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.6rem; font-stretch: 90%; letter-spacing: -.02em; flex-wrap: wrap; }
.pf-brand img { border-radius: 10px; background: #fff; }
.pf-brand.light { color: var(--band-fg); }
.pf-stage { position: relative; min-height: 440px; border-radius: var(--r-lg); background: #1F4D33; overflow: hidden; display: grid; place-items: center; }
.pf-stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(232, 239, 74, .25) 1.2px, transparent 1.6px); background-size: 18px 18px; }
.pf-stage::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: #E8EF4A; right: -70px; top: -70px; }
.phone { position: absolute; width: min(42%, 210px); border-radius: 26px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); z-index: 1; }
.pf-stage .p1 { left: 12%; top: 9%; transform: rotate(-4deg); }
.pf-stage .p2 { right: 12%; top: 18%; transform: rotate(4deg); z-index: 2; }
.pf-stage.three { min-height: 520px; background: rgba(0, 0, 0, .18); }
.pf-stage.three .phone { width: min(31%, 200px); }
.pf-stage.three .p1 { left: 4%; top: 12%; }
.pf-stage.three .p2 { left: 50%; top: 4%; transform: translateX(-50%); z-index: 3; }
.pf-stage.three .p3 { right: 4%; left: auto; top: 14%; transform: rotate(4deg); }
.checks.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks.plain li { display: flex; gap: 12px; font-size: var(--t-sm); }
.checks.plain li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; margin-top: 2px; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%23C8F04A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 9.2l2.3 2.3 4.7-4.9'/%3E%3C/svg%3E"); }
.product-strip { flex-direction: row !important; align-items: center; gap: 20px !important; flex-wrap: wrap; }
.product-strip img { border-radius: 12px; flex: none; }
.product-strip > div { flex: 1; min-width: 220px; display: grid; gap: 4px; }
@media (max-width: 900px) { .product-feature { grid-template-columns: 1fr; } .pf-stage { min-height: 380px; } .pf-stage.three { min-height: 420px; } }

/* Onawo page: the product keeps its own green + yellow inside the Gokamu frame */
.onawo-theme { --band: #1F4D33; --band-muted: #C9D8C4; --band-line: rgba(243, 247, 230, .16); --volt: #E8EF4A; --volt-2: #DCE43A; }
.on-hero { background: var(--band); color: var(--band-fg); position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px); }
.on-hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.on-copy { display: grid; gap: 22px; }
.on-copy h1 { font-size: var(--t-h1); }
.on-copy .crumbs, .on-copy .crumbs a { color: var(--band-muted); }
.on-copy .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.on-hero .pf-brand .tag { background: rgba(255,255,255,.1); color: var(--band-fg); border-color: var(--band-line); }
@media (max-width: 900px) { .on-hero .wrap { grid-template-columns: 1fr; } }

/* Service detail capability cards */
.caps-grid .card { gap: 10px; }
.cap-dot { display: block; width: 28px; height: 10px; background: radial-gradient(circle at 5px 5px, var(--indigo) 4px, transparent 4.5px), linear-gradient(var(--indigo), var(--indigo)) 10px 4px / 18px 2px no-repeat; }
