/* =========================================================================
   SecureCo — Design System
   ========================================================================= */

:root {
  /* Colors */
  --bg: #FFFFFF;
  --bg-soft: #F7F7F4;
  --bg-card: #FFFFFF;
  --bg-accent-soft: #EEF2F8;

  --ink: #0A0A0A;
  --ink-muted: #585858;
  --ink-faint: #8A8A8A;

  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);

  --accent: #0A2540;
  --accent-hover: #061829;
  --accent-text: #0A2540;

  /* Typography */
  --font-sans: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-serif: 'Crimson Pro', Georgia, serif;

  /* Layout */
  --max-w: 1200px;
  --pad-x: clamp(20px, 5vw, 80px);

  /* Motion */
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

/* =========================================================================
   Reset & Base
   ========================================================================= */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern", "liga", "calt", "ss01";
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; cursor: pointer; border: none; background: none; -webkit-tap-highlight-color: transparent; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

/* =========================================================================
   Layout primitives
   ========================================================================= */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

section { padding: clamp(56px, 10vw, 120px) 0; }

.section-divider { border-top: 0.5px solid var(--border); }

.section-header { margin-bottom: clamp(40px, 6vw, 56px); max-width: 580px; }
.section-header .eyebrow { display: block; margin-bottom: 12px; }
.section-header h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
}

/* =========================================================================
   Eyebrow label
   ========================================================================= */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.eyebrow.block { display: block; margin-bottom: 14px; }

/* =========================================================================
   Header & Navigation
   ========================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 0.5px solid transparent;
  transition: border-color 0.2s var(--ease);
  padding-top: env(safe-area-inset-top);
}
.site-header.scrolled { border-bottom-color: var(--border); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-mark {
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1.5px solid #fff;
  border-radius: 1.5px;
}

.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-muted);
  transition: color 0.15s var(--ease);
  padding: 6px 0;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: flex;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  border: 0.5px solid var(--border);
  border-radius: 6px;
  padding: 2px;
}
.lang-toggle button,
.lang-toggle a {
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--ink-faint);
  font-family: inherit;
  font-size: inherit;
  transition: all 0.15s var(--ease);
  min-height: 24px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.lang-toggle button.active,
.lang-toggle a.active {
  color: var(--ink);
  background: var(--bg-soft);
}
.lang-toggle button:hover:not(.active),
.lang-toggle a:hover:not(.active) { color: var(--ink-muted); }
.lang-toggle button:active,
.lang-toggle a:active { background: var(--bg-accent-soft); }

/* Mobile menu toggle button */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--ink);
  transition: background 0.15s var(--ease);
}
.menu-toggle:hover { background: var(--bg-soft); }
.menu-toggle:active { background: var(--bg-accent-soft); }
.menu-toggle svg { width: 20px; height: 20px; }

/* Mobile menu panel (full-screen) */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--pad-x);
  height: 60px;
  border-bottom: 0.5px solid var(--border);
  flex-shrink: 0;
}
.mobile-menu-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 32px var(--pad-x) 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
}
.mobile-nav-links a {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: 18px 0;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.15s var(--ease);
  min-height: 56px;
}
.mobile-nav-links a:active { color: var(--accent); }
.mobile-nav-links a.active { color: var(--accent); }
.mobile-nav-links a .arrow {
  font-size: 16px;
  color: var(--ink-faint);
  transition: transform 0.2s var(--ease);
}
.mobile-nav-links a:active .arrow { transform: translateX(2px); }

.mobile-menu-footer {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-menu-footer .lang-toggle {
  align-self: flex-start;
  font-size: 13px;
}
.mobile-menu-footer .lang-toggle button,
.mobile-menu-footer .lang-toggle a {
  padding: 8px 14px;
  min-height: 36px;
}
.mobile-menu-footer .footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: 8px;
}

/* =========================================================================
   Buttons
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 8px;
  border: 0.5px solid transparent;
  transition: all 0.18s var(--ease);
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.005em;
  min-height: 44px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-primary:active {
  background: var(--accent-hover);
  transform: translateY(0);
}
.btn-primary .arrow { transition: transform 0.2s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(2px); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--bg-soft);
  border-color: var(--ink);
}
.btn-secondary:active { background: var(--bg-soft); }

/* =========================================================================
   Form inputs
   ========================================================================= */

.input-field {
  font-family: inherit;
  font-size: 14px;
  padding: 12px 14px;
  border: 0.5px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: all 0.15s var(--ease);
  letter-spacing: -0.005em;
  width: 100%;
  min-height: 44px;
}
.input-field::placeholder { color: var(--ink-faint); }
.input-field:hover { border-color: var(--ink-faint); }
.input-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.08);
}

textarea.input-field {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
  line-height: 1.6;
}

select.input-field {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M3 4.5l3 3 3-3' stroke='%238A8A8A' stroke-width='1.2' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field-group { margin-bottom: 14px; }
.field-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* =========================================================================
   Text link with arrow
   ========================================================================= */

.text-link {
  font-size: 14px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-bottom: 0.5px solid var(--border-strong);
  padding: 4px 0 4px;
  transition: all 0.15s var(--ease);
}
.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  gap: 8px;
}
.text-link:active { color: var(--accent); }

/* =========================================================================
   Page header
   ========================================================================= */

.page-header { padding: clamp(56px, 10vw, 120px) 0 clamp(40px, 6vw, 72px); }
.page-header h1 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 16px 0 20px;
  max-width: 620px;
}
.page-header .sub {
  font-size: clamp(15px, 1.5vw, 16px);
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 560px;
}

/* =========================================================================
   Footer
   ========================================================================= */

.site-footer {
  border-top: 0.5px solid var(--border);
  padding: 48px 0 32px;
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
  background: var(--bg);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-muted);
  letter-spacing: -0.005em;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 4px; }
.footer-col a {
  font-size: 13px;
  color: var(--ink-muted);
  transition: color 0.15s var(--ease);
  padding: 6px 0;
  display: inline-block;
}
.footer-col a:hover { color: var(--ink); }
.footer-col a:active { color: var(--accent); }
.footer-bottom {
  border-top: 0.5px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
}
.footer-bottom .legal { display: flex; gap: 8px; }
.footer-bottom .legal a {
  padding: 6px 8px;
  margin: -6px -8px;
}
.footer-bottom .legal a:hover { color: var(--ink-muted); }

/* =========================================================================
   Reveal animation
   ========================================================================= */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================================
   HOME PAGE
   ========================================================================= */

.hero {
  padding: clamp(56px, 12vw, 140px) 0 clamp(72px, 14vw, 160px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-content { max-width: 580px; }
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 20px 0 20px;
  color: var(--ink);
}
.hero-sub {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.65;
  color: var(--ink-muted);
  margin-bottom: 32px;
  max-width: 480px;
}
.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 360px;
  margin-left: auto;
}

/* Product cards (home) */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.product-card {
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--bg-card);
  transition: all 0.25s var(--ease);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
  text-decoration: none;
}
.product-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px rgba(10, 37, 64, 0.12);
}
.product-card:active {
  transform: translateY(0);
  border-color: var(--ink-faint);
}
.product-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.product-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--bg-accent-soft);
  color: var(--accent-text);
  white-space: nowrap;
}
.product-tagline {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: auto;
}
.product-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
}
.product-link {
  font-size: 13px;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s var(--ease), gap 0.2s var(--ease);
  margin-top: 4px;
}
.product-card:hover .product-link,
.product-card:active .product-link {
  color: var(--accent);
  gap: 8px;
}

/* Principles (home — 3 cols) */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.principle h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--ink);
}
.principle p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-muted);
}

/* Company bridge */
.bridge {
  background: var(--bg-soft);
  padding: clamp(48px, 8vw, 96px) 0;
}
.bridge-inner { max-width: 560px; }
.bridge h2 {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.bridge p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

/* Early Access (home) */
.early-access h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  max-width: 560px;
}
.early-access .sub {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin-bottom: 24px;
  max-width: 480px;
}
.ea-form {
  display: flex;
  gap: 8px;
  max-width: 540px;
  flex-wrap: wrap;
}
.ea-form .input-field { width: auto; }
.ea-form input[name="email"] { flex: 2; min-width: 200px; }
.ea-form input[name="company"] { flex: 1.2; min-width: 140px; }
.ea-success {
  display: none;
  font-size: 13px;
  color: var(--accent);
  margin-top: 14px;
  font-family: var(--font-mono);
}
.ea-success.show { display: block; }

/* =========================================================================
   PRODUCTS PAGE
   ========================================================================= */

.product-section {
  border-top: 0.5px solid var(--border);
  padding: clamp(56px, 10vw, 112px) 0;
}
.product-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.product-section-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.product-section-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}
.product-section-name {
  font-size: clamp(20px, 2.4vw, 22px);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.product-section-fullname {
  font-size: 13px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
}
.product-tagline-big {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.025em;
  max-width: 540px;
  margin-bottom: 32px;
}

.problem-approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
  max-width: 900px;
}
.pa-block .eyebrow { display: block; margin-bottom: 12px; }
.pa-block p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 40px;
}
.feature-card {
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  background: var(--bg-card);
  transition: border-color 0.2s var(--ease);
}
.feature-card:hover { border-color: var(--border-strong); }
.feature-card h4 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-muted);
}

.ea-box {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: clamp(22px, 3vw, 28px) clamp(24px, 3vw, 32px);
  max-width: 720px;
}
.ea-box-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.ea-box-sub {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

/* =========================================================================
   COMPANY PAGE
   ========================================================================= */

.principles-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 32px;
}
.principle-block {
  border-top: 0.5px solid var(--border-strong);
  padding-top: 20px;
}
.principle-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.principle-block h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.principle-block p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-muted);
}

.leadership {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  max-width: 720px;
}
.leader {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.leader-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-muted);
  flex-shrink: 0;
}
.leader-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 2px;
}
.leader-role {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.leader p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-muted);
}

/* =========================================================================
   CAREERS PAGE
   ========================================================================= */

.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.who-item h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.who-item p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-muted);
}

.empty-state {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: clamp(22px, 3vw, 28px) clamp(24px, 3vw, 32px);
  margin-bottom: 36px;
  max-width: 720px;
}
.empty-state-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.empty-state p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-muted);
}

.areas-list {
  display: flex;
  flex-direction: column;
  max-width: 720px;
}
.area-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 0.5px solid var(--border);
  font-size: 15px;
  transition: color 0.15s var(--ease);
  cursor: pointer;
  min-height: 56px;
  gap: 12px;
}
.area-row:last-child { border-bottom: 0.5px solid var(--border); }
.area-row:hover { color: var(--accent); }
.area-row:hover .area-cta { color: var(--accent); gap: 8px; }
.area-row:active { color: var(--accent); }
.area-row:active .area-cta { color: var(--accent); }
.area-cta {
  font-size: 12px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s var(--ease);
  white-space: nowrap;
}

.contact-cta-box {
  background: var(--bg-soft);
  padding: clamp(40px, 6vw, 72px) 0;
}
.contact-cta-inner { max-width: 560px; }
.contact-cta-box h2 {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.contact-cta-box p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.email-link {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
  border-bottom: 0.5px solid var(--border-strong);
  padding: 4px 0;
  transition: all 0.15s var(--ease);
  display: inline-block;
}
.email-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.email-link:active { color: var(--accent); }

/* =========================================================================
   CONTACT PAGE
   ========================================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  border-top: 0.5px solid var(--border);
  padding-top: clamp(40px, 6vw, 72px);
}
.contact-form-wrapper { max-width: 520px; }
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.option-hint {
  font-size: 11px;
  color: var(--ink-faint);
  line-height: 1.6;
  margin-top: 8px;
  font-family: var(--font-mono);
}
.contact-aside {
  border-left: 0.5px solid var(--border);
  padding-left: 36px;
}
.aside-block { margin-bottom: 28px; }
.aside-block:last-child { margin-bottom: 0; }
.aside-block .eyebrow { display: block; margin-bottom: 10px; }
.aside-block p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-muted);
}
.aside-block .email-link { display: inline-block; margin-top: 6px; }

.form-success {
  display: none;
  background: var(--bg-accent-soft);
  color: var(--accent);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--font-mono);
  margin-top: 16px;
}
.form-success.show { display: block; }

.form-error {
  display: none;
  background: rgba(220, 38, 38, 0.06);
  color: #b91c1c;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--font-mono);
  margin-top: 16px;
}
.form-error.show { display: block; }

/* =========================================================================
   Responsive — Tablet (≤900px)
   ========================================================================= */

@media (max-width: 900px) {
  /* Hide desktop nav, show mobile menu toggle */
  .nav-links { display: none; }
  .nav-right > .lang-toggle { display: none; }
  .menu-toggle { display: inline-flex; }

  /* Prevent iOS zoom on input focus */
  .input-field { font-size: 16px; }

  /* Layout reflow */
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 240px; margin: 0; }
  .products-grid { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; gap: 28px; }
  .principles-2x2 { grid-template-columns: 1fr; gap: 28px; }
  .problem-approach-grid { grid-template-columns: 1fr; gap: 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .contact-aside {
    border-left: none;
    padding-left: 0;
    border-top: 0.5px solid var(--border);
    padding-top: 28px;
  }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* =========================================================================
   Responsive — Phone (≤560px)
   ========================================================================= */

@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .cta-row { width: 100%; }
  .cta-row .btn { flex: 1; }
  .contact-row { grid-template-columns: 1fr; }
  .area-row { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 0; }
  .ea-form { flex-direction: column; }
  .ea-form .input-field { width: 100%; }
  .ea-form .btn { width: 100%; }
  .product-section-head { align-items: flex-start; }
  .product-section-title { width: 100%; }
}

/* =========================================================================
   Accessibility — Reduced motion
   ========================================================================= */

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

/* =========================================================================
   Focus visibility (keyboard navigation)
   ========================================================================= */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.input-field:focus-visible {
  outline: none;
}
