/* ============================================================
   Easybox — landing page
   Palette: white precision ground · deep ink navy band ·
            electric blue accent · signal mint accent-2
   Type:    Sora (display) · Be Vietnam Pro (body) · JetBrains Mono (utility)
   ============================================================ */

:root {
  --ground: #ffffff;
  --ground-soft: #f6f8fb;
  --ink: #0c1a2b;
  --ink-band: #0a1626;
  --on-dark: #dce6f2;
  --on-dark-soft: #8ea4bf;
  --muted: #5a6b7d;
  --accent: #2f6bff;
  --accent-press: #2255db;
  --accent-2: #19c39a;
  --line: #e7ebf1;
  --line-strong: #d7deea;
  --line-dark: #1b2d44;

  --font-display: "Sora", "Be Vietnam Pro", system-ui, sans-serif;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 14px;
  --radius-sm: 10px;
  --section-y: clamp(72px, 9vw, 128px);
  --shadow: 0 1px 2px rgba(12, 26, 43, 0.04), 0 18px 40px -28px rgba(12, 26, 43, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  cursor: pointer;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.92em 1.5em;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease,
    color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(47, 107, 255, 0.7);
}
.btn-primary:hover {
  background: var(--accent-press);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-sm {
  padding: 0.62em 1.05em;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

.btn-arrow {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}
.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ---------- eyebrow / section heads ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow .idx {
  font-weight: 700;
  color: var(--ink);
  padding-right: 0.7em;
  border-right: 1px solid var(--line-strong);
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(25, 195, 154, 0.18);
}
.eyebrow-on-dark {
  color: #6f9bff;
}
.eyebrow-on-dark .idx,
.eyebrow .idx.idx-on-dark {
  color: var(--on-dark);
  border-right-color: var(--line-dark);
}

.section {
  padding-block: var(--section-y);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(40px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700;
  text-wrap: balance;
}

.section-lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 52ch;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}
.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  border-radius: 9px;
}
.brand-footer .brand-logo {
  height: 30px;
}
.brand-mark svg {
  fill: var(--ink);
}
.brand-mark svg .mark-live {
  fill: var(--accent);
}

.nav {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
  font-size: 0.96rem;
  font-weight: 500;
}
.nav a {
  color: var(--muted);
  position: relative;
  padding-block: 4px;
  transition: color 0.18s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.22s ease;
}
.nav a:hover {
  color: var(--ink);
}
.nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1;
}
.lang-opt {
  padding: 7px 9px;
  background: transparent;
  color: var(--muted);
  border: 0;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.18s ease, color 0.18s ease;
}
.lang-opt + .lang-opt {
  border-left: 1px solid var(--line-strong);
}
.lang-opt[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}
.lang-opt:hover:not([aria-pressed="true"]) {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 38px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px var(--gutter) 22px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.mobile-nav[hidden] {
  display: none;
}
.mobile-nav a:not(.btn) {
  padding: 12px 4px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn {
  margin-top: 10px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--ink-band);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(rgba(143, 164, 191, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 164, 191, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 30%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 30% 30%, #000 40%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(96px, 14vw, 168px);
  max-width: 880px;
}

.hero-title {
  margin-top: 26px;
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}
.accent-word {
  position: relative;
  color: #fff;
  white-space: nowrap;
}
.accent-word::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.16em;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
}

.hero-sub {
  margin-top: 28px;
  max-width: 52ch;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--on-dark);
}

.hero-cta {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-cta .btn-ghost {
  border-color: var(--line-dark);
  color: var(--on-dark);
}
.hero-cta .btn-ghost:hover {
  border-color: var(--on-dark-soft);
  color: #fff;
}

.hero-stats {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 64px);
  padding-top: 30px;
  border-top: 1px solid var(--line-dark);
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stats strong {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.hero-stats span {
  font-size: 0.86rem;
  color: var(--on-dark-soft);
  letter-spacing: 0.01em;
}

/* ============================================================
   SERVICES — bento
   ============================================================ */
.services {
  background: var(--ground);
}

.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(26px, 3vw, 38px);
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.cell:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.cell-idx {
  position: absolute;
  top: clamp(22px, 3vw, 32px);
  right: clamp(22px, 3vw, 32px);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--line-strong);
  letter-spacing: 0.08em;
}
.cell-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(47, 107, 255, 0.08);
  border: 1px solid rgba(47, 107, 255, 0.16);
}
.cell-icon svg {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cell-icon svg .ic-live {
  fill: var(--accent-2);
  stroke: var(--accent-2);
}
.cell-title {
  font-size: 1.32rem;
  font-weight: 700;
}
.cell-text {
  color: var(--muted);
  font-size: 1rem;
}

/* ============================================================
   CAPABILITIES
   ============================================================ */
.capabilities {
  background: var(--ground-soft);
  border-block: 1px solid var(--line);
}
.cap-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.cap-head {
  margin-bottom: 0;
  position: sticky;
  top: 100px;
}
.cap-list {
  display: flex;
  flex-direction: column;
}
.cap-item {
  display: flex;
  gap: 24px;
  padding: 30px 4px;
  border-top: 1px solid var(--line-strong);
}
.cap-item:last-child {
  border-bottom: 1px solid var(--line-strong);
}
.cap-num {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
  padding-top: 5px;
  min-width: 34px;
}
.cap-body h3 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}
.cap-body p {
  color: var(--muted);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--ground);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.about-text .section-title {
  margin-top: 4px;
}
.about-lead {
  font-size: 1.14rem;
  color: var(--ink);
}
.about-body {
  color: var(--muted);
}
.commit-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.commit-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.check {
  flex: none;
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(24px, 3vw, 34px);
  background: var(--ground-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.metric-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.metric-num .plus {
  color: var(--accent);
}
.metric-label {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ============================================================
   PARTNERS
   ============================================================ */
.partners {
  background: var(--ground-soft);
  border-block: 1px solid var(--line);
}
.logo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.logo-strip li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  color: var(--muted);
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.logo-strip li:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--ink-band);
  color: var(--on-dark);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}
.contact-lead {
  color: var(--on-dark);
  max-width: 46ch;
}
.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
}
.contact-meta li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.meta-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}
.contact-meta a {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  width: fit-content;
}
.contact-meta a:hover {
  color: #6f9bff;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(26px, 3vw, 38px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--on-dark);
}
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #fff;
  background: rgba(10, 22, 38, 0.6);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  padding: 0.85em 1em;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #59708e;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.25);
}
.contact-form .btn-primary {
  margin-top: 4px;
}
.form-status {
  min-height: 1.2em;
  font-size: 0.92rem;
  text-align: center;
  color: var(--accent-2);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink-band);
  color: var(--on-dark-soft);
  border-top: 1px solid var(--line-dark);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 36px;
  padding-block: clamp(48px, 6vw, 72px);
}
.footer-brand {
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.brand-footer {
  color: #fff;
}
.brand-footer .brand-mark svg {
  fill: #fff;
}
.brand-footer .brand-mark svg .mark-live {
  fill: var(--accent);
}
.footer-tag {
  color: var(--on-dark-soft);
  font-size: 0.96rem;
  line-height: 1.6;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-content: flex-start;
  font-size: 0.96rem;
}
.footer-nav a {
  color: var(--on-dark);
  transition: color 0.18s ease;
}
.footer-nav a:hover {
  color: #fff;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.86rem;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.footer-links {
  display: flex;
  gap: 22px;
}
.footer-links a:hover {
  color: #fff;
}

/* ============================================================
   REVEAL animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav,
  .header-actions .btn-sm {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .cap-inner,
  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr;
  }
  .cap-head {
    position: static;
  }
  .logo-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }
  .bento,
  .metrics {
    grid-template-columns: 1fr;
  }
  .logo-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-cta .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
