/* ─── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img  { display: block; max-width: 100%; }
a    { text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul   { list-style: none; }

/* ─── Tokens ─────────────────────────────────────────── */
:root {
  --base:        #1A1C38;
  --elevated:    #111111;
  --surface:     #121315;
  --surface-low: #1b1c1d;
  --bright:      #38393a;
  --on:          #e3e2e3;
  --on-var:      #bec8d3;
  --cyan:        #1FAFFE;
  --cyan-10:     rgba(31,175,254,.10);
  --cyan-20:     rgba(31,175,254,.20);
  --cyan-30:     rgba(31,175,254,.30);
  --cyan-40:     rgba(31,175,254,.40);
  --border:      rgba(255,255,255,.08);
  --glass:       rgba(17,17,17,.60);
  --ff-display:  'Hanken Grotesk', sans-serif;
  --ff-body:     'Inter', sans-serif;
  --ff-mono:     'JetBrains Mono', monospace;
  --max-w:       1280px;
  --gap:         24px;
  --section:     120px;
}

/* ─── Base ───────────────────────────────────────────── */
body {
  background: var(--base);
  color: var(--on);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Flow-field canvas background ───────────────────── */
#flow-bg {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
  width: 100%; height: 100%;
}

/* ─── Scroll reveal ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1),
              transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.in { opacity: 1; transform: none; }
.rg .reveal:nth-child(1) { transition-delay: .07s; }
.rg .reveal:nth-child(2) { transition-delay: .14s; }
.rg .reveal:nth-child(3) { transition-delay: .21s; }
.rg .reveal:nth-child(4) { transition-delay: .28s; }
.rg .reveal:nth-child(5) { transition-delay: .35s; }
.rg .reveal:nth-child(6) { transition-delay: .42s; }
.rg .reveal:nth-child(7) { transition-delay: .49s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  #flow-bg { display: none; }
}

/* ─── Layout ─────────────────────────────────────────── */
.container { max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gap); }
section    { padding-block: var(--section); }

/* ─── Material Symbols ───────────────────────────────── */
.mi {
  font-family: 'Material Symbols Outlined';
  font-weight: 400; font-style: normal;
  font-size: 24px; line-height: 1;
  letter-spacing: normal; white-space: nowrap;
  direction: ltr; display: inline-block; vertical-align: middle;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 24;
}
.mi.fill   { font-variation-settings: 'FILL' 1,'wght' 400,'GRAD' 0,'opsz' 24; }
.mi.s18    { font-size: 18px; }
.mi.s32    { font-size: 32px; }
.mi.s40    { font-size: 40px; }
.mi.s48    { font-size: 48px; }
.mi.s80    { font-size: 80px; }

/* ─── Typography helpers ─────────────────────────────── */
.tag {
  font-family: var(--ff-mono); font-size: 13px; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase; color: var(--cyan);
}
.h-display {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -.04em; color: var(--on);
}
.h-lg {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: var(--on);
}
.h-md {
  font-family: var(--ff-display);
  font-size: 1.5rem; font-weight: 600; line-height: 1.4; color: var(--on);
}

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-size: 13px; font-weight: 500;
  letter-spacing: .05em; padding: 14px 32px; border-radius: 4px;
  transition: filter .15s; position: relative; z-index: 0;
}
.btn-primary { background: var(--cyan); color: var(--base); }
.btn-primary::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 22px rgba(31,175,254,.5);
  opacity: 0; transition: opacity .3s; z-index: -1;
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-primary:hover::after { opacity: 1; }
.btn-secondary {
  background: rgba(17,17,17,.5); color: var(--on);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bright); }
.btn-pill { border-radius: 9999px; padding: 10px 24px; }

/* ─── Card ───────────────────────────────────────────── */
.card {
  background: var(--elevated); border: 1px solid var(--border); border-radius: 16px;
  transition: transform .4s cubic-bezier(.175,.885,.32,1.275),
              box-shadow .4s, border-color .4s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -12px rgba(31,175,254,.22);
  border-color: var(--cyan-40);
}

/* ═══════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; width: 100%; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px;
  border-bottom: 1px solid var(--border);
  transition: background-color .3s, backdrop-filter .3s, box-shadow .3s;
}
#navbar.scrolled {
  background: rgba(17,17,17,.85);
  backdrop-filter: blur(18px);
  box-shadow: 0 4px 32px rgba(0,0,0,.18);
}
.nav-left   { display: flex; align-items: center; gap: 40px; }
.nav-logo   { display: flex; align-items: center; }
.nav-logo img {
  height: 36px; width: auto; display: block;
  background: rgba(255,255,255,.92);
  border-radius: 6px;
  padding: 3px 7px;
}
.nav-links  { display: flex; gap: 24px; }
.nav-links a {
  font-family: var(--ff-body); font-size: 14px;
  color: var(--on-var); transition: color .15s;
}
.nav-links a:hover { color: var(--cyan); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-login {
  font-family: var(--ff-mono); font-size: 13px;
  color: var(--on-var); padding: 8px 16px; transition: color .15s;
}
.nav-login:hover { color: var(--cyan); }
.hamburger { display: none; color: var(--on); padding: 6px; }

.nav-partner-logo {
  height: 44px; width: auto; display: block;
  border-radius: 5px;
  opacity: .85;
  transition: opacity .2s;
}
.nav-partner-logo:hover { opacity: 1; }
.nav-divider {
  width: 1px; height: 24px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Language toggle ──────────────────────────────────────── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
}
.lang-btn {
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--on-var);
  padding: 5px 9px;
  border-radius: 4px;
  letter-spacing: .06em;
  transition: color .15s, background .15s;
}
.lang-btn.active {
  color: var(--cyan);
  background: var(--cyan-10);
}
.lang-btn:hover:not(.active) {
  color: var(--on);
  background: var(--border);
}
.lang-sep {
  color: rgba(255,255,255,.2);
  font-size: 12px;
  pointer-events: none;
  user-select: none;
}
.lang-toggle--mob {
  margin-top: 20px;
  justify-content: center;
}

/* ─── Mobile drawer ──────────────────────────────────── */
.mob-menu {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(8,9,10,.96); flex-direction: column;
  align-items: center; justify-content: center; gap: 36px;
}
.mob-menu.open { display: flex; }
.mob-menu a {
  font-family: var(--ff-display); font-size: 1.8rem; font-weight: 700;
  color: var(--on); transition: color .15s;
}
.mob-menu a:hover { color: var(--cyan); }
.mob-close {
  position: absolute; top: 20px; right: 20px;
  color: var(--on); font-size: 32px;
}

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
.hero {
  padding-top: calc(80px + 32px);
  padding-bottom: var(--section);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.hero-globe-wrap {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  position: relative;
}
#hero-globe {
  width: 100%;
  height: 100%;
}

/* ═══════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.about-text { display: flex; flex-direction: column; gap: 24px; }
.about-body {
  font-family: var(--ff-body); font-size: 1rem;
  color: var(--on-var); line-height: 1.6; text-align: justify;
}
.about-img-wrap {
  position: relative; height: 460px;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--border);
}
.about-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s;
}
.about-img-wrap:hover img { transform: scale(1.04); }
.about-img-border {
  position: absolute; inset: 0; border-radius: 12px;
  border: 2px solid var(--cyan-20); pointer-events: none;
}

/* ═══════════════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════════════ */
#services {
  background: rgba(17,17,17,.3);
  border-top:    1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.svc-head {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 24px; margin-bottom: 48px;
}
.svc-head-left { display: flex; flex-direction: column; gap: 12px; }
.svc-head-desc {
  max-width: 400px; text-align: right;
  font-family: var(--ff-body); font-size: 1rem;
  color: var(--on-var); line-height: 1.6;
}

/* 12-col bento */
.svc-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 24px; height: 600px;
}
.svc-1 { grid-column: span 4; grid-row: span 2; }
.svc-2 { grid-column: span 8; grid-row: span 1; }
.svc-3 { grid-column: span 4; grid-row: span 1; }
.svc-4 { grid-column: span 4; grid-row: span 1; }

.svc-card {
  padding: 32px; display: flex; flex-direction: column;
  justify-content: space-between; position: relative; overflow: hidden;
}
.svc-glow {
  position: absolute; right: -16px; top: -16px;
  width: 128px; height: 128px;
  background: var(--cyan-10); border-radius: 50%; filter: blur(40px);
  transition: background .35s; pointer-events: none;
}
.svc-card:hover .svc-glow { background: var(--cyan-20); }
.svc-card-footer {
  margin-top: 32px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.svc-card-footer span {
  font-family: var(--ff-mono); font-size: 11px;
  color: rgba(31,175,254,.55); letter-spacing: .06em; text-transform: uppercase;
}
.svc-2-inner {
  display: flex; gap: 32px; align-items: flex-start; height: 100%;
}
.svc-2-bg-icon {
  flex-shrink: 0; opacity: .18; transition: opacity .3s;
  align-self: center;
}
.svc-2:hover .svc-2-bg-icon { opacity: .36; }
.svc-cta {
  background: var(--cyan-10) !important;
  border-color: var(--cyan-30) !important;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; gap: 20px;
}

/* ═══════════════════════════════════════════════════════
   WHY US
═══════════════════════════════════════════════════════ */
.why-header {
  text-align: center; max-width: 720px;
  margin-inline: auto; margin-bottom: 48px;
  display: flex; flex-direction: column; gap: 12px;
}
.why-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 16px;
}
.why-main     { grid-column: span 3; grid-row: span 2; }
.why-cyber    { grid-column: span 1; grid-row: span 1; }
.why-risk     { grid-column: span 1; grid-row: span 1; }
.why-net      { grid-column: span 1; grid-row: span 2; }
.why-mon      { grid-column: span 1; grid-row: span 1; }
.why-email    { grid-column: span 1; grid-row: span 1; }
.why-backup   { grid-column: span 5; grid-row: span 1; }

.why-main-inner {
  padding: 40px; height: 100%;
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
}
.why-body {
  font-family: var(--ff-body); font-size: 1.1rem;
  color: var(--on); line-height: 1.7;
}
.why-list { display: flex; flex-direction: column; gap: 16px; }
.why-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-family: var(--ff-body); font-size: 1rem; color: var(--on);
}
.why-chip {
  padding: 20px 16px; min-height: 100px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; gap: 8px;
}
.why-chip-label {
  font-family: var(--ff-mono); font-size: 10px;
  font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: var(--on);
}
.why-backup-inner {
  padding: 24px 32px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px; min-height: 80px;
}
.why-backup-left {
  display: flex; align-items: center; gap: 16px;
}
.why-backup-right {
  font-family: var(--ff-body); font-size: 0.9rem;
  color: var(--on-var); padding-left: 24px;
  border-left: 1px solid var(--border); flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════ */
#contact { border-top: 1px solid rgba(255,255,255,.05); }
.contact-wrap { max-width: 640px; margin-inline: auto; }
.contact-head {
  text-align: center; margin-bottom: 48px;
  display: flex; flex-direction: column; gap: 8px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.form-row label {
  font-family: var(--ff-mono); font-size: 13px; font-weight: 500;
  letter-spacing: .05em; color: var(--on-var);
}
.form-row input,
.form-row textarea {
  width: 100%; background: var(--base);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 12px 14px; color: var(--on);
  font-family: var(--ff-body); font-size: 16px;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: rgba(255,255,255,.25); }
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  width: 100%; background: var(--cyan); color: var(--base);
  font-family: var(--ff-mono); font-size: 13px; font-weight: 500;
  letter-spacing: .05em; padding: 16px;
  border-radius: 6px; display: flex; align-items: center;
  justify-content: center; gap: 8px;
  position: relative; z-index: 0; transition: filter .15s;
}
.btn-submit::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 22px rgba(31,175,254,.5); opacity: 0;
  z-index: -1; transition: opacity .3s;
}
.btn-submit:hover { filter: brightness(1.08); }
.btn-submit:hover::after { opacity: 1; }

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
footer {
  background: var(--base);
  border-top: 1px solid var(--border);
  padding-block: var(--section);
}
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap);
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo img {
  height: 40px; width: auto; display: block;
  background: rgba(255,255,255,.92);
  border-radius: 6px;
  padding: 4px 8px;
}
.footer-copy {
  font-family: var(--ff-body); font-size: 0.875rem;
  color: var(--on-var); line-height: 1.6;
}
.footer-col { display: flex; flex-direction: column; gap: 16px; }
.footer-col h4 {
  font-family: var(--ff-mono); font-size: 13px; font-weight: 500;
  letter-spacing: .05em; color: var(--cyan); text-transform: uppercase;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-family: var(--ff-body); font-size: 1rem;
  color: var(--on-var); transition: color .15s;
}
.footer-col a:hover { color: var(--cyan); }
.contact-line {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--ff-body); font-size: 0.9rem; color: var(--on-var);
}

/* ═══════════════════════════════════════════════════════
   GLASS BANNER
═══════════════════════════════════════════════════════ */
.glass-banner {
  position: relative;
  padding: 56px var(--gap);
  text-align: center;
  overflow: hidden;
  background: rgba(31, 175, 254, 0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top:    1px solid rgba(31, 175, 254, 0.12);
  border-bottom: 1px solid rgba(31, 175, 254, 0.12);
}
.glass-banner-glow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 320px; height: 320px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.glass-banner-glow--left  {
  left: -80px;
  background: rgba(31, 175, 254, 0.12);
}
.glass-banner-glow--right {
  right: -80px;
  background: rgba(31, 175, 254, 0.08);
}
.glass-banner-text {
  position: relative;
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--on);
  max-width: 820px;
  margin-inline: auto;
  line-height: 1.3;
}
.glass-banner-text::before,
.glass-banner-text::after {
  content: '"';
  font-size: 1.2em;
  color: var(--cyan);
  opacity: 0.6;
  font-family: Georgia, serif;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
  .hero-globe-wrap { max-width: 440px; }

  .svc-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    height: auto;
  }
  .svc-1 { grid-column: span 2; grid-row: span 1; }
  .svc-2 { grid-column: span 2; grid-row: span 1; }
  .svc-3 { grid-column: span 1; grid-row: span 1; }
  .svc-4 { grid-column: span 1; grid-row: span 1; }
  .svc-2-bg-icon { display: none; }
}

@media (max-width: 767px) {
  :root { --section: 80px; }
  #navbar { padding: 14px 20px; }
  .nav-links, .nav-right { display: none; }
  .hamburger { display: flex; }

  .hero { padding-top: calc(64px + 40px); }
  .hero-globe-wrap { max-width: 320px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-wrap { height: 280px; }

  .svc-head { flex-direction: column; }
  .svc-head-desc { text-align: left; }
  .svc-bento { grid-template-columns: 1fr; }
  .svc-1, .svc-2, .svc-3, .svc-4 { grid-column: span 1; grid-row: span 1; }

  .why-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .why-main   { grid-column: 1 / -1; grid-row: span 1; }
  .why-net    { grid-row: span 1; }
  .why-email  { grid-column: 1 / -1; }
  .why-backup { grid-column: 1 / -1; }
  .why-backup-right { display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 479px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
}
