/* TechPeasy — Make it easy. */
:root {
  --bg: #000;
  --surface: #0f1012;
  --surface-2: #16171a;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #6e6e73;
  --cyan: #2ee6f6;
  --teal: #19d3a8;
  --grad: linear-gradient(100deg, #2ee6f6 0%, #19d3a8 100%);
  --on-grad: #00191c;
  --nav-bg: rgba(0, 0, 0, 0.55);
  --nav-bg-scrolled: rgba(0, 0, 0, 0.72);
  --menu-bg: rgba(0, 0, 0, 0.94);
  --field-bg: #000;
  --field-line: rgba(255, 255, 255, 0.12);
  --toast-bg: rgba(40, 40, 44, 0.9);
  --ctl-bg: rgba(255, 255, 255, 0.12);
  --ctl-bg-hover: rgba(255, 255, 255, 0.22);
  --band-bg: #000;
  --radius-xl: 28px;
  --nav-h: 52px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --surface-2: #ececf0;
  --line: rgba(0, 0, 0, 0.08);
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --cyan: #0e7490;
  --teal: #0f766e;
  --grad: linear-gradient(100deg, #0e7490 0%, #0f766e 100%);
  --on-grad: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.6);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.8);
  --menu-bg: rgba(255, 255, 255, 0.96);
  --field-bg: #ffffff;
  --field-line: rgba(0, 0, 0, 0.14);
  --toast-bg: rgba(29, 29, 31, 0.9);
  --ctl-bg: rgba(0, 0, 0, 0.08);
  --ctl-bg-hover: rgba(0, 0, 0, 0.16);
  --band-bg: #ffffff;
  color-scheme: light;
}
[data-theme="light"] .toast { color: #f5f5f7; }

.theme-light-only { display: none !important; }
[data-theme="light"] .theme-light-only { display: block !important; }
[data-theme="light"] .theme-dark-only { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 22px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 999px; font-size: 14px;
}
.skip-link:focus { left: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: var(--nav-bg-scrolled); }
.nav-inner {
  height: var(--nav-h); max-width: 1080px; margin-inline: auto; padding-inline: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 34px; }
.nav-links a { font-size: 13px; color: var(--text); opacity: .8; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  font-size: 12.5px; font-weight: 500; padding: 6px 14px; border-radius: 999px;
  background: var(--text); color: var(--bg); transition: opacity .2s;
}
.nav-cta:hover { opacity: .85; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: transparent; color: var(--text);
  opacity: .8; transition: opacity .2s, background .2s;
}
.theme-toggle:hover { opacity: 1; background: var(--ctl-bg); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-moon { display: none; }
[data-theme="light"] .theme-toggle .i-sun { display: none; }
[data-theme="light"] .theme-toggle .i-moon { display: block; }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--grad); color: var(--on-grad);
  font: 600 17px/1 var(--font); letter-spacing: -0.01em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  box-shadow: 0 0 0 0 rgba(46, 230, 246, 0);
}
.btn-pill:hover { transform: scale(1.03); box-shadow: 0 10px 40px -10px rgba(46, 230, 246, 0.6); }
.btn-block { width: 100%; }
.link-arrow { color: var(--cyan); font-size: 17px; font-weight: 500; }
.link-arrow::after { content: ' ›'; display: inline-block; transition: transform .25s var(--ease); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Brand film ---------- */
.film {
  position: relative; overflow: hidden; background: var(--bg);
  margin-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
}
.film-video {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  max-height: calc(100vh - var(--nav-h)); max-height: calc(100svh - var(--nav-h));
  object-fit: cover; background: var(--bg);
}
.film-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 22%; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 100%);
}
.video-toggle {
  position: absolute; right: 22px; bottom: 22px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: var(--ctl-bg); border: 0; color: var(--text);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background .2s;
}
.video-toggle:hover { background: var(--ctl-bg-hover); }
.video-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.video-toggle .i-play { display: none; }
.video-toggle.is-paused .i-play { display: block; }
.video-toggle.is-paused .i-pause { display: none; }

/* ---------- Intro (below the film) ---------- */
.intro { text-align: center; padding-block: clamp(32px, 5vw, 64px) clamp(72px, 10vw, 120px); }
.intro-title {
  margin: 0 auto; max-width: 18ch;
  font-size: clamp(38px, 6.2vw, 80px); line-height: 1.05; font-weight: 700; letter-spacing: -0.04em;
}
.intro-sub {
  margin: 24px auto 0; max-width: 46ch;
  font-size: clamp(18px, 2vw, 22px); line-height: 1.45; color: var(--text-2); letter-spacing: -0.01em;
}
.hero-ctas { margin-top: 36px; display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* ---------- Type ---------- */
.eyebrow {
  margin: 0 0 14px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section { padding-block: clamp(96px, 14vw, 170px); }
.section-head { margin-bottom: clamp(48px, 7vw, 80px); }
.section-head.center { text-align: center; }
.section-title {
  margin: 0; font-size: clamp(40px, 6.4vw, 80px); line-height: 1.04; font-weight: 700; letter-spacing: -0.04em;
}
.section-lead { margin: 22px auto 0; max-width: 36ch; color: var(--text-2); font-size: clamp(19px, 2vw, 24px); line-height: 1.35; }

/* ---------- About ---------- */
.about { padding-block: clamp(80px, 12vw, 150px) clamp(24px, 4vw, 48px); border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.about-head { position: sticky; top: calc(var(--nav-h) + 40px); }
.about-title {
  margin: 0; max-width: 16ch;
  font-size: clamp(32px, 4vw, 52px); line-height: 1.08; font-weight: 700; letter-spacing: -0.035em;
}
.about-body p { margin: 0 0 18px; color: var(--text-2); font-size: 17px; line-height: 1.65; }
.about-body .about-lead { color: var(--text); font-size: clamp(20px, 2vw, 24px); line-height: 1.45; letter-spacing: -0.015em; font-weight: 500; }
.about-points { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 4px; }
.about-points li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line); }
.about-points strong { display: block; font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.about-points span { color: var(--text-2); font-size: 15px; }
.about-icon {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); color: var(--cyan);
}
.about-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tile {
  position: relative; overflow: hidden;
  background: var(--surface); border-radius: var(--radius-xl);
  padding: clamp(32px, 4.5vw, 56px);
  min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .5s var(--ease), background .4s;
}
.tile::before {
  content: ''; position: absolute; width: 420px; height: 420px; top: -200px; right: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,230,246,0.16) 0%, rgba(46,230,246,0) 65%);
  pointer-events: none; transition: opacity .5s; opacity: .6;
}
.tile:hover { background: var(--surface-2); }
.tile:hover::before { opacity: 1; }
.tile-wide { grid-column: span 1; }
.tile-icon {
  position: absolute; top: clamp(32px, 4.5vw, 56px); left: clamp(32px, 4.5vw, 56px);
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(46, 230, 246, 0.1); color: var(--cyan);
}
.tile-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.tile p { margin: 0; color: var(--text-2); font-size: 17px; line-height: 1.5; max-width: 40ch; }

@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile-wide { grid-column: span 2; }
  .tile { min-height: 400px; }
}

/* ---------- Brand band ---------- */
.band { background: var(--band-bg); padding-top: clamp(96px, 14vw, 170px); overflow: hidden; }
.band-head { text-align: center; }
.band-title { margin: 0; font-size: clamp(40px, 7vw, 88px); line-height: 1.04; font-weight: 700; letter-spacing: -0.045em; }
.band-visual { margin: clamp(24px, 4vw, 48px) auto 0; max-width: 1400px; }
.band-visual img {
  width: 100%;
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 70% at 50% 50%, #000 55%, transparent 100%);
}
[data-theme="light"] .band-visual img { -webkit-mask-image: none; mask-image: none; }

/* ---------- Principles ---------- */
.principles { padding-top: clamp(72px, 10vw, 120px); }
.principles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.principle { border-top: 1px solid var(--line); padding-top: 28px; }
.principle-num { display: block; font-size: 14px; font-weight: 600; color: var(--text-3); margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.principle h3 { margin: 0 0 10px; font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.principle p { margin: 0; color: var(--text-2); }

/* ---------- Contact ---------- */
.contact { padding-top: clamp(40px, 6vw, 80px); }
.contact-wrap { max-width: 760px; }
.contact-form {
  background: var(--surface); border-radius: var(--radius-xl);
  padding: clamp(24px, 4.5vw, 48px); display: grid; gap: 18px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 14px; font-weight: 500; color: var(--text-2); }
.field em { font-style: normal; color: var(--text-3); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 15px 16px; border-radius: 14px; resize: vertical;
  background: var(--field-bg); color: var(--text); border: 1px solid var(--field-line);
  font: 400 17px/1.4 var(--font); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(46, 230, 246, 0.15);
}
.contact-form .btn-pill { margin-top: 6px; padding-block: 16px; }
.form-note { margin: 4px 0 0; font-size: 13px; color: var(--text-3); text-align: center; line-height: 1.6; }
.form-note a { color: var(--cyan); }
.copy-btn {
  background: none; border: 0; padding: 0 0 0 6px; cursor: pointer;
  font: inherit; color: var(--text-2); text-decoration: underline; text-underline-offset: 2px;
}
.copy-btn:hover { color: var(--text); }

/* ---------- Footer ---------- */
.footer { padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }
.footer-copy { margin: 0; width: 100%; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 150;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--toast-bg); color: var(--text); font-size: 14px;
  padding: 12px 20px; border-radius: 999px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .intro .reveal:nth-child(2) { transition-delay: .08s; }
.js .intro .reveal:nth-child(3) { transition-delay: .16s; }
.js .intro .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-head { position: static; }
  .nav-cta { display: none; }
  .nav-toggle {
    display: grid; align-content: center; gap: 6px; width: 40px; height: 40px; margin-right: -10px;
    background: none; border: 0; cursor: pointer; padding: 0 10px;
  }
  .nav-toggle span { display: block; height: 1.5px; background: var(--text); border-radius: 1px; transition: transform .3s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav-links {
    position: fixed; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 22px 28px;
    background: var(--menu-bg);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { font-size: 26px; font-weight: 600; padding: 12px 0; color: var(--text); letter-spacing: -0.02em; }
  .principles-grid { grid-template-columns: 1fr; }
  .band-visual img { -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 50%, transparent 100%); mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 50%, transparent 100%); }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .tile { min-height: 300px; }
  .field-row { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
