/* FTC Technologies — site styles
   Palette: deep navy, white, electric teal accent. System fonts only (no third-party requests). */

:root {
  --navy-950: #070F1C;
  --navy-900: #0B1526;
  --navy-800: #111F36;
  --navy-700: #1A2B47;
  --navy-600: #2A3D5E;
  --slate-500: #5B6B84;
  --slate-400: #8A9AB3;
  --slate-300: #B7C3D6;
  --line-light: #E3E8F0;
  --tint: #F5F7FA;
  --white: #FFFFFF;
  --ink: #0B1526;
  --ink-soft: #3E4C63;

  --accent: #22D3EE;          /* on dark backgrounds */
  --accent-strong: #0A7287;   /* on light backgrounds (AA contrast) */
  --accent-soft: rgba(34, 211, 238, .12);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 650; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); letter-spacing: -.035em; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); letter-spacing: -.03em; }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--font-mono); font-size: .78em; letter-spacing: .04em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--navy-950); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-size: .975rem; font-weight: 600; line-height: 1;
  padding: 15px 24px; border-radius: 10px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn span[aria-hidden] { transition: transform .2s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--navy-950); }
.btn-primary:hover { background: #67E8F9; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; border-color: rgba(183, 195, 214, .35); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.section:not(.section-dark) .btn-ghost { border-color: var(--line-light); }
.section:not(.section-dark) .btn-ghost:hover { color: var(--accent-strong); border-color: var(--accent-strong); }
.btn-sm { padding: 11px 18px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--white);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-solid {
  background: rgba(7, 15, 28, .86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: rgba(138, 154, 179, .14);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; color: var(--navy-800); }
.brand-mark-bg { stroke: rgba(138, 154, 179, .3); stroke-width: 1; }
.brand-name { font-weight: 700; letter-spacing: -.01em; font-size: 1.08rem; }
.brand-name span { font-weight: 450; color: var(--slate-300); }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a:not(.btn) {
  display: block; padding: 8px 12px; color: var(--slate-300); text-decoration: none;
  font-size: .925rem; font-weight: 500; border-radius: 6px; transition: color .2s;
}
.nav-menu a:not(.btn):hover { color: var(--white); }
.nav-cta { margin-left: 12px; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: transparent; border: 1px solid rgba(138, 154, 179, .3);
    border-radius: 10px; color: var(--white); cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
    transition: transform .25s var(--ease), background-color .2s;
  }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -6px; }
  .nav-toggle-bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

  .nav-menu {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px clamp(20px, 4vw, 40px) 28px;
    background: var(--navy-950); border-bottom: 1px solid rgba(138, 154, 179, .14);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-menu a:not(.btn) { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid rgba(138, 154, 179, .1); border-radius: 0; }
  .nav-cta { margin: 20px 0 0; }
  .nav-cta .btn { width: 100%; padding: 15px; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-950); color: var(--white);
  padding: calc(var(--header-h) + clamp(56px, 10vw, 120px)) 0 clamp(72px, 10vw, 120px);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(138, 154, 179, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 154, 179, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .accent { color: var(--accent); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--slate-300); max-width: 36ch; margin-bottom: 2.2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 3em; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--slate-300); font-size: .925rem; padding-top: 1.75em; border-top: 1px solid rgba(138, 154, 179, .16); }
.hero-facts li { display: flex; align-items: center; gap: 10px; }
.hero-facts .mono { color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-strong); margin-bottom: 1.25em; font-weight: 500;
}
.eyebrow-dark { color: var(--accent); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.hero-diagram { margin: 0; }
.diagram { width: 100%; height: auto; border: 1px solid rgba(138, 154, 179, .14); border-radius: 18px; background: rgba(17, 31, 54, .45); }
.diagram-caption { color: var(--slate-400); margin-top: 14px; font-size: .72rem; }
.node rect { fill: var(--navy-800); stroke: rgba(138, 154, 179, .28); stroke-width: 1; }
.node-core > rect:first-child { fill: #0E2A3E; stroke: var(--accent); stroke-width: 1.25; }
.node-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; fill: var(--slate-400); }
.node-core .node-label { fill: var(--accent); }
.node-title { font-family: var(--font-sans); font-size: 13px; font-weight: 600; fill: var(--white); }
.bar { fill: rgba(138, 154, 179, .2); }
.bar-fill { fill: var(--accent); animation: fill 4s var(--ease) infinite alternate; transform-box: fill-box; transform-origin: left; }
.wire { stroke: rgba(34, 211, 238, .38); stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.6s var(--ease) forwards .3s; }
.pulse { fill: var(--accent); filter: drop-shadow(0 0 4px rgba(34, 211, 238, .8)); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fill { from { transform: scaleX(.35); } to { transform: scaleX(1.6); } }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-diagram { max-width: 560px; }
}

/* Sections */
.section { padding: clamp(80px, 11vw, 136px) 0; }
.section-dark { background: var(--navy-900); color: var(--white); }
.section-dark .section-intro, .section-dark p { color: var(--slate-300); }
.section-tint { background: var(--tint); }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-intro { font-size: 1.125rem; color: var(--ink-soft); max-width: 62ch; }
.icon { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light); }
.service {
  position: relative; padding: clamp(28px, 3vw, 40px);
  border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light);
  transition: background-color .3s var(--ease);
}
.service::before {
  content: ""; position: absolute; left: -1px; top: -1px; height: 2px; width: 0; background: var(--accent-strong);
  transition: width .45s var(--ease);
}
.service:hover { background: var(--tint); }
.service:hover::before { width: calc(100% + 2px); }
.service-num { position: absolute; top: clamp(28px, 3vw, 40px); right: clamp(28px, 3vw, 40px); color: var(--slate-400); }
.service .icon { color: var(--accent-strong); margin-bottom: 28px; }
.service h3 { margin-bottom: .6em; }
.service p { color: var(--ink-soft); font-size: .985rem; margin-bottom: 1.5em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .78rem; font-weight: 500; color: var(--ink-soft); padding: 4px 10px; border: 1px solid var(--line-light); border-radius: 999px; background: var(--white); }
.service-cta { background: var(--navy-900); color: var(--white); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.service-cta:hover { background: var(--navy-800); }
.service-cta::before { display: none; }
.service-cta p { color: var(--slate-300); }

@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } }

/* Why */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.why-head { position: sticky; top: calc(var(--header-h) + 40px); }
.why-head .section-intro { margin-bottom: 2em; }
.why-list li {
  display: grid; grid-template-columns: 56px 1fr; gap: 8px;
  padding: 30px 0; border-top: 1px solid rgba(138, 154, 179, .16);
}
.why-list li:last-child { border-bottom: 1px solid rgba(138, 154, 179, .16); }
.why-num { color: var(--accent); padding-top: 4px; }
.why-list h3 { color: var(--white); }
.why-list p { margin: 0; }
@media (max-width: 860px) {
  .why { grid-template-columns: 1fr; }
  .why-head { position: static; }
}

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.process::before {
  content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 1px;
  background: repeating-linear-gradient(90deg, var(--slate-300) 0 6px, transparent 6px 12px);
}
.step { position: relative; }
.step-marker {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--line-light); color: var(--accent-strong);
  margin-bottom: 28px; position: relative; z-index: 1;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s;
}
.step:hover .step-marker { background: var(--navy-900); color: var(--accent); border-color: var(--navy-900); }
.step-marker .mono { font-size: .78rem; font-weight: 600; }
.step p { color: var(--ink-soft); font-size: .985rem; }
.step-out { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line-light); font-weight: 600; color: var(--ink) !important; font-size: .925rem !important; }
.step-out .mono { color: var(--slate-500); font-weight: 500; text-transform: uppercase; font-size: .7rem; letter-spacing: .12em; }
@media (max-width: 960px) {
  .process { grid-template-columns: repeat(2, 1fr); gap: 44px 28px; }
  .process::before { display: none; }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; gap: 0; }
  .step { padding-left: 68px; padding-bottom: 36px; }
  .step-marker { position: absolute; left: 0; top: -6px; margin: 0; }
  .step:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 44px; bottom: 0; width: 1px; background: var(--line-light); }
}

/* Clients */
.clients { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.client {
  background: var(--white); border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.client:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(11, 21, 38, .35); border-color: #CFD8E4; }
.client .icon { color: var(--accent-strong); margin-bottom: 24px; }
.client p { color: var(--ink-soft); font-size: .965rem; margin: 0; }
@media (max-width: 1000px) { .clients { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .clients { grid-template-columns: 1fr; } }

/* About */
.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.about-copy p { color: var(--ink-soft); font-size: 1.075rem; max-width: 62ch; }
.about-card { background: var(--tint); border: 1px solid var(--line-light); border-radius: var(--radius); padding: 12px 28px; }
.about-card dl { margin: 0; }
.about-card div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line-light); }
.about-card div:last-child { border-bottom: 0; }
.about-card dt { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-500); padding-top: 3px; }
.about-card dd { margin: 0; font-weight: 600; font-size: .965rem; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .about-card div { grid-template-columns: 1fr; gap: 2px; } }

/* Contact */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.contact-points { margin-top: 2em; display: grid; gap: 14px; }
.contact-points li { position: relative; padding-left: 30px; color: var(--slate-300); }
.contact-points li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-3px);
}
.form-wrap { background: var(--navy-800); border: 1px solid rgba(138, 154, 179, .16); border-radius: 18px; padding: clamp(24px, 4vw, 44px); }
.contact-form { display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--white); }
.req { color: var(--accent); }
.optional { font-weight: 400; color: var(--slate-400); }
.field input:not([type="checkbox"]), .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--white);
  background: var(--navy-950); border: 1px solid var(--navy-600); border-radius: 10px;
  padding: 13px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238A9AB3' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: #F87171 !important; }
.hint { margin: 0; font-size: .85rem; color: var(--slate-400) !important; }
.field-check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.field-check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent); }
.field-check label { font-weight: 400; color: var(--slate-300); font-size: .9rem; }
.field-check a { color: var(--accent); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; padding: 12px 14px; border-radius: 10px; background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .35); color: #FECACA !important; font-size: .925rem; }
.form-success { text-align: center; padding: clamp(20px, 4vw, 40px) 0; }
.form-success:focus { outline: none; }
.form-success h3 { color: var(--white); font-size: 1.35rem; }
.form-success p { max-width: 44ch; margin: 0 auto 1.8em; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 24px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.success-icon circle { stroke-dasharray: 140; stroke-dashoffset: 140; animation: draw .8s var(--ease) forwards; }
.success-icon path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .4s var(--ease) forwards .6s; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy-950); color: var(--slate-300); padding: 64px 0 32px; font-size: .925rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(138, 154, 179, .14); }
.footer-brand { max-width: 380px; }
.footer-brand .brand { color: var(--white); margin-bottom: 16px; }
.footer-brand p { color: var(--slate-400); margin: 0; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-nav a { color: var(--slate-300); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; color: var(--slate-400); font-size: .85rem; }
.footer-legal p { margin: 0; }

/* Legal / simple pages */
.page-hero { background: var(--navy-950); color: var(--white); padding: calc(var(--header-h) + 64px) 0 56px; }
.page-hero p { color: var(--slate-300); margin: 0; }
.prose { max-width: 760px; padding-top: 56px; padding-bottom: 96px; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }
.placeholder { background: #FFF6D6; color: #6B4E00; padding: 1px 6px; border-radius: 4px; font-family: var(--font-mono); font-size: .85em; }
.notice { background: var(--tint); border: 1px solid var(--line-light); border-left: 3px solid var(--accent-strong); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 2em; }
.notice p { margin: 0; }
.center-page { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--navy-950); color: var(--white); padding: 120px 20px 80px; }
.center-page p { color: var(--slate-300); max-width: 48ch; margin: 0 auto 2em; }

/* Reveal on scroll (enabled only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .wire { stroke-dashoffset: 0; }
  .pulses { display: none; }
}
