/* ==========================================================
   One Touch High Technology: styles
   ========================================================== */

:root {
  --bg: #050914;
  --bg-2: #0b1224;
  --text: #e2e8f0;
  --heading: #f8fafc;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --blue: #3b82f6;
  --line: rgba(148, 163, 184, 0.16);
  --glass: rgba(11, 18, 36, 0.55);
  --radius: 18px;
  --grad: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(1200px 700px at 80% -10%, rgba(59, 130, 246, 0.18), transparent 60%),
                    radial-gradient(900px 600px at -10% 40%, rgba(34, 211, 238, 0.10), transparent 60%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); color: var(--heading); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }

/* 3D background canvas: fixed behind everything */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}
body.no-webgl #bg-canvas { display: none; }
body.no-webgl { background-image: radial-gradient(1000px 700px at 70% 30%, rgba(59,130,246,.35), transparent 60%), radial-gradient(800px 600px at 10% 80%, rgba(34,211,238,.25), transparent 60%); }

main, .site-footer, .site-header { position: relative; z-index: 1; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: #001018; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #03121c; box-shadow: 0 10px 30px -10px rgba(34, 211, 238, .6); }
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(34, 211, 238, .8); }
.btn-ghost { border-color: rgba(226, 232, 240, .25); color: var(--heading); background: rgba(255,255,255,.03); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-small { padding: 9px 18px; font-size: .875rem; background: var(--grad); color: #03121c; }
.btn-block { width: 100%; }

/* ---------- Glass cards ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}
.card { padding: 28px; transition: border-color .3s ease, box-shadow .3s ease; will-change: transform; }
.card:hover { border-color: rgba(34, 211, 238, .45); box-shadow: 0 20px 60px -30px rgba(34, 211, 238, .45); }

.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; transition: background .35s ease, box-shadow .35s ease, padding .35s ease; }
/* Blur lives on a pseudo-element so the header itself is not a containing block for the fixed mobile menu */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: transparent; transition: background .35s ease, box-shadow .35s ease; pointer-events: none; }
.site-header.scrolled::before { background: rgba(5, 9, 20, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { width: 56px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--muted); font-size: .92rem; font-weight: 500; transition: color .2s ease; position: relative; }
.nav-links a:not(.btn):hover { color: var(--heading); }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--grad); transition: width .3s ease;
}
.nav-links a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--heading); margin: 6px 0; border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.site-header.open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; position: relative; padding: 120px 0 80px; }
.hero-inner { max-width: 760px; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 .line:nth-child(2) > span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 620px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .9rem; }
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid rgba(226,232,240,.35); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--accent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }

.lead { font-size: 1.18rem; color: var(--heading); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; margin-bottom: 80px; }
.about-grid p:not(.eyebrow):not(.lead) { color: var(--muted); }
.about-cards { display: grid; gap: 22px; }
.about-cards h3 { color: var(--accent); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; }
.about-cards p { margin: 0; color: var(--text); font-size: 1.08rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px; }
.stat { padding: 30px 18px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { display: block; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--muted); font-size: .92rem; }

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

/* Services */
.service { display: flex; flex-direction: column; min-height: 230px; }
.service .num { font-family: var(--font-head); font-size: .85rem; color: var(--accent); letter-spacing: .1em; margin-bottom: 18px; }
.service h3 { font-size: 1.08rem; }
.service p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Products */
.product { overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease-out, border-color .3s ease; will-change: transform; }
.product:hover { border-color: rgba(34, 211, 238, .45); }
.product img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s ease; }
.product:hover img { transform: scale(1.05); }
.product-body { padding: 22px 24px 26px; }
.product-body h3 { font-size: 1.1rem; }
.product-body p { color: var(--muted); font-size: .95rem; margin: 0; }
.also { margin-top: 36px; color: var(--muted); font-size: .95rem; max-width: 820px; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { padding: 34px 28px; position: relative; }
.step-num { display: inline-block; font-family: var(--font-head); font-size: 3.2rem; font-weight: 700; line-height: 1; margin-bottom: 18px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step p { color: var(--muted); margin: 0; }

/* Partners */
.partners { padding-bottom: 60px; }
.partners .section-head { margin-bottom: 40px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee 38s linear infinite; padding: 6px 0; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-track img { width: 150px; height: 100px; object-fit: contain; background: #fff; border-radius: 14px; padding: 16px; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact-list { margin: 36px 0 28px; display: grid; gap: 22px; }
.contact-list li { display: grid; gap: 4px; }
.contact-list .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); font-weight: 600; }
.contact-list a, .contact-list span:not(.label) { color: var(--heading); font-size: 1.05rem; transition: color .2s ease; }
.contact-list a:hover { color: var(--accent); }
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.socials a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .9rem; transition: all .2s ease; }
.socials a:hover { color: var(--heading); border-color: var(--accent); }

.form { padding: 34px; display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-size: .88rem; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(2, 6, 18, .6); color: var(--heading); font: inherit; transition: border-color .2s ease, box-shadow .2s ease;
}
.field select option { background: var(--bg-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(34, 211, 238, .15); }
.field textarea { resize: vertical; min-height: 120px; }
.form-status { margin: 0; color: var(--muted); font-size: .92rem; min-height: 1.4em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: rgba(5, 9, 20, .7); backdrop-filter: blur(6px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; align-items: center; }
.footer-grid img { width: 64px; height: auto; margin-bottom: 12px; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-grid nav a { color: var(--muted); font-size: .95rem; }
.footer-grid nav a:hover { color: var(--heading); }
.footer-grid p { margin: 0; }
.footer-grid p.small { justify-self: end; text-align: right; }

/* ---------- Reveal helpers (JS adds the motion; without JS everything is visible) ---------- */
[data-reveal] { will-change: transform, opacity; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 76px; left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(5, 9, 20, .96); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease, visibility .25s;
    backdrop-filter: blur(14px);
  }
  .site-header.open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a:not(.btn) { padding: 14px 16px; border-radius: 12px; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin: 8px 8px 6px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid p.small { justify-self: start; text-align: left; }
}

@media (max-width: 640px) {
  .section { padding: 84px 0; }
  .hero { padding: 110px 0 96px; }
  .hero-actions .btn { width: 100%; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .card, .step { padding: 24px; }
  .stat { padding: 22px 10px; }
  .section-head { margin-bottom: 40px; }
  .marquee-track img { width: 120px; height: 84px; padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
