/* ============================================================
   ARISAVO — Design System
   Version: 1.0
   Last Updated: 2026
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Colors */
  --color-bg:         #F8FAFC;
  --color-surface:    #FFFFFF;
  --color-primary:    #172B4D;
  --color-primary-2:  #1E3A5F;
  --color-accent:     #2563EB;
  --color-accent-2:   #1D4ED8;
  --color-text:       #111827;
  --color-muted:      #64748B;
  --color-muted-2:    #94A3B8;
  --color-border:     #E2E8F0;
  --color-border-2:   #CBD5E1;
  --color-success:    #059669;

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Typography */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-jp:      'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  --font-mono:    'Fira Code', 'Cascadia Code', 'Courier New', monospace;

  --text-xs:    12px;
  --text-sm:    14px;
  --text-base:  16px;
  --text-md:    18px;
  --text-lg:    20px;
  --text-xl:    24px;
  --text-2xl:   30px;
  --text-3xl:   36px;
  --text-4xl:   48px;
  --text-5xl:   60px;
  --text-6xl:   72px;

  --leading-tight:    1.2;
  --leading-snug:     1.35;
  --leading-normal:   1.6;
  --leading-relaxed:  1.75;
  --leading-jp:       1.8;

  --tracking-tight:   -0.03em;
  --tracking-normal:  -0.01em;
  --tracking-wide:    0.05em;
  --tracking-wider:   0.12em;

  --weight-light:   300;
  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semi:    600;
  --weight-bold:    700;

  /* Border Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 2px 0 rgb(0 0 0 / 0.04);
  --shadow-sm:  0 1px 3px 0 rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.04);
  --shadow-md:  0 4px 6px -1px rgb(0 0 0 / 0.06), 0 2px 4px -2px rgb(0 0 0 / 0.04);
  --shadow-lg:  0 10px 15px -3px rgb(0 0 0 / 0.06), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-xl:  0 20px 25px -5px rgb(0 0 0 / 0.06), 0 8px 10px -6px rgb(0 0 0 / 0.04);

  /* Layout */
  --container-width:      1200px;
  --container-narrow:     860px;
  --container-wide:       1400px;
  --container-padding:    clamp(20px, 5vw, 48px);

  /* Header */
  --header-height: 72px;

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Z-index */
  --z-base:    0;
  --z-above:   10;
  --z-modal:   100;
  --z-header:  200;
  --z-overlay: 300;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.lang-ja {
  font-family: var(--font-jp);
  line-height: var(--leading-jp);
  font-feature-settings: "palt";
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

input, textarea, select {
  font: inherit;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--weight-semi);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-primary);
}

.lang-ja h1,
.lang-ja h2,
.lang-ja h3,
.lang-ja h4 {
  letter-spacing: 0.02em;
  font-weight: var(--weight-medium);
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
h2 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl)); }
h4 { font-size: clamp(var(--text-lg), 2vw, var(--text-xl)); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p { color: var(--color-muted); line-height: var(--leading-relaxed); }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

.section--sm {
  padding-block: clamp(var(--space-12), 5vw, var(--space-20));
}

.section--lg {
  padding-block: clamp(var(--space-20), 10vw, 160px);
}

/* ── Grid ─────────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-auto-md { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid-auto-lg { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }

/* ── Flex utilities ───────────────────────────────────────── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }

/* ── Section Header ───────────────────────────────────────── */
.section-header {
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

.section-header--center {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.lang-ja .section-label {
  text-transform: none;
  letter-spacing: 0.08em;
  font-size: var(--text-sm);
}

.section-title {
  margin-bottom: var(--space-4);
}

.section-desc {
  font-size: var(--text-md);
  max-width: 560px;
}

.section-header--center .section-desc {
  margin-inline: auto;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background-color: var(--color-accent);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background-color: var(--color-accent-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--navy {
  background-color: var(--color-primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.btn--navy:hover {
  background-color: var(--color-primary-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-border-2);
}

.btn--ghost:hover {
  border-color: var(--color-primary);
  background-color: var(--color-bg);
}

.btn--ghost-white {
  background-color: transparent;
  color: #FFFFFF;
  border: 1.5px solid rgba(255,255,255,0.35);
}

.btn--ghost-white:hover {
  background-color: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
}

.btn--sm {
  font-size: var(--text-xs);
  padding: 9px 18px;
}

.btn--lg {
  font-size: var(--text-base);
  padding: 16px 32px;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  border-color: var(--color-border-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card--flat {
  border: 1px solid var(--color-border);
  box-shadow: none;
}

.card--flat:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.06);
  transform: translateY(-1px);
}

/* ── Service Card ─────────────────────────────────────────── */
.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--color-accent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  border-color: var(--color-border-2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 48px;
  height: 48px;
  background: #EFF6FF;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semi);
  color: var(--color-primary);
  margin: 0;
}

.service-card p {
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  flex: 1;
}

.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  margin-top: auto;
  transition: gap var(--transition-fast);
}

.service-card:hover .card-link {
  gap: var(--space-2);
}

/* ── Badge ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: #EFF6FF;
  color: var(--color-accent);
  border: 1px solid #BFDBFE;
}

.badge--muted {
  background: var(--color-bg);
  color: var(--color-muted);
  border-color: var(--color-border);
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text);
}

.form-label sup {
  color: var(--color-accent);
  font-size: var(--text-xs);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 16px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  font-family: inherit;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-muted-2);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: var(--leading-relaxed);
}

.form-grid {
  display: grid;
  gap: var(--space-5);
}

.form-grid-2 {
  grid-template-columns: 1fr 1fr;
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo__mark {
  width: 34px;
  height: 34px;
  background: var(--color-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: var(--weight-bold);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.site-logo__text {
  font-size: 17px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  color: var(--color-primary);
  font-family: var(--font-sans);
}

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
  font-family: var(--font-sans);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-primary);
  background: rgba(23, 43, 77, 0.05);
}

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* Lang switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  font-family: var(--font-sans);
}

.lang-switcher a {
  padding: 5px 10px;
  color: var(--color-muted);
  transition: color var(--transition-fast);
  border-radius: var(--radius-sm);
}

.lang-switcher a:hover { color: var(--color-primary); }
.lang-switcher a.current { color: var(--color-primary); font-weight: var(--weight-semi); }

.lang-divider {
  color: var(--color-border-2);
  font-size: 11px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.menu-toggle:hover { background: var(--color-bg); }

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* Mobile Nav Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-header) - 1);
  background: var(--color-surface);
  padding-top: calc(var(--header-height) + var(--space-6));
  padding-inline: var(--container-padding);
  flex-direction: column;
  gap: var(--space-2);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav a {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-primary);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
  display: block;
}

.mobile-nav .mobile-lang {
  margin-top: var(--space-6);
  display: flex;
  gap: var(--space-3);
}

.mobile-nav .mobile-cta {
  margin-top: var(--space-6);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 90%;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.06) 0%, transparent 65%);
  border-radius: 50%;
}

.hero-glow-2 {
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(23, 43, 77, 0.04) 0%, transparent 65%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 5vw, var(--space-16));
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 560px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-5);
  font-family: var(--font-sans);
}

.lang-ja .hero-label {
  text-transform: none;
  letter-spacing: 0.06em;
  font-size: var(--text-sm);
}

.hero-label-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

.lang-ja .hero-title {
  font-size: clamp(28px, 4vw, 52px);
  letter-spacing: 0.01em;
  font-weight: var(--weight-medium);
  line-height: 1.3;
}

.hero-title em {
  font-style: normal;
  color: var(--color-accent);
}

.hero-desc {
  font-size: clamp(var(--text-base), 2vw, var(--text-md));
  color: var(--color-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  max-width: 480px;
}

.lang-ja .hero-desc {
  font-size: clamp(var(--text-sm), 1.8vw, var(--text-base));
  line-height: var(--leading-jp);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Trust Bar ────────────────────────────────────────────── */
.trust-bar {
  background: var(--color-primary);
  padding-block: var(--space-10);
}

.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
}

.trust-item__icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
}

.trust-item__icon svg {
  width: 18px;
  height: 18px;
}

.trust-item__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: #FFFFFF;
  white-space: nowrap;
  font-family: var(--font-sans);
}

.trust-item__sub {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  font-family: var(--font-sans);
}

/* ── Process ──────────────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(100% / 10);
  right: calc(100% / 10);
  height: 1px;
  background: var(--color-border);
  z-index: 0;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  position: relative;
  z-index: 1;
  padding: var(--space-2) var(--space-3);
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--color-accent);
  font-family: var(--font-sans);
  position: relative;
  transition: all var(--transition-base);
}

.process-step:hover .step-number {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #FFFFFF;
}

.step-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--color-primary);
  font-family: var(--font-sans);
}

.lang-ja .step-label {
  font-size: var(--text-xs);
  font-family: var(--font-jp);
}

.step-desc {
  font-size: var(--text-xs);
  color: var(--color-muted);
  line-height: var(--leading-relaxed);
}

/* ── Tech stack ───────────────────────────────────────────── */
.tech-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.tech-group-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-muted-2);
  font-family: var(--font-sans);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tech-tag {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  padding: 5px 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-sans);
  transition: all var(--transition-fast);
}

.tech-tag:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ── CTA Section ──────────────────────────────────────────── */
.cta-section {
  background: var(--color-primary);
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

.cta-section .section-label {
  color: rgba(255,255,255,0.5);
}

.cta-section h2 {
  color: #FFFFFF;
  margin-bottom: var(--space-5);
}

.cta-section p {
  color: rgba(255,255,255,0.65);
  font-size: var(--text-md);
  margin-bottom: var(--space-8);
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: #0F1E35;
  padding-block: var(--space-16) var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
  margin-bottom: var(--space-12);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo__mark {
  width: 32px;
  height: 32px;
  background: var(--color-accent);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}

.footer-logo__text {
  font-size: 16px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  color: #FFFFFF;
  font-family: var(--font-sans);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  line-height: var(--leading-relaxed);
  max-width: 220px;
}

.footer-col h4 {
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--space-4);
  font-family: var(--font-sans);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  transition: color var(--transition-fast);
  font-family: var(--font-sans);
}

.footer-col a:hover { color: #FFFFFF; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
  font-family: var(--font-sans);
}

.footer-legal {
  display: flex;
  gap: var(--space-5);
}

.footer-legal a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
  transition: color var(--transition-fast);
  font-family: var(--font-sans);
}

.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* ── Utilities ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--color-muted); }
.text-accent { color: var(--color-accent); }
.text-white  { color: #FFFFFF; }

.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes float {
  0%   { transform: translate3d(0, 0px, 0); }
  25%  { transform: translate3d(0, -4px, 0); }
  50%  { transform: translate3d(0, -7px, 0); }
  75%  { transform: translate3d(0, -3px, 0); }
  100% { transform: translate3d(0, 0px, 0); }
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.5; }
}

.animate-fade-up {
  animation: fadeUp 0.6s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

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

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-desc { max-width: 100%; }

  .hero-visual {
    display: none;
  }

  .btn-group {
    justify-content: center;
  }

  .process-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }

  .process-steps::before { display: none; }

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

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .header-right .btn { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav { display: flex; }

  .hero {
    min-height: auto;
    padding-block: calc(var(--header-height) + 60px) 60px;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .trust-bar .container {
    gap: var(--space-8);
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .process-steps {
    grid-template-columns: 1fr;
  }

  .hero-label { justify-content: center; }

  .btn--lg {
    font-size: var(--text-sm);
    padding: 14px 24px;
    width: 100%;
    justify-content: center;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── content-visibility: lazy-render off-screen sections ─────── */
.section,
.trust-bar,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}
