/* ===========================
   KOMOGOTO — Modern Redesign
   =========================== */

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

:root {
  --bg:          #050508;
  --bg-2:        #0b0b12;
  --bg-3:        #111120;
  --surface:     rgba(255,255,255,0.04);
  --surface-hov: rgba(255,255,255,0.07);
  --border:      rgba(255,255,255,0.08);
  --border-hov:  rgba(255,255,255,0.16);

  --text:        #f0f0f8;
  --text-muted:  rgba(240,240,248,0.5);
  --text-dim:    rgba(240,240,248,0.25);

  --accent:      #7c5af0;
  --accent-2:    #3ecfcf;
  --accent-3:    #f05af0;

  --grad-1: linear-gradient(135deg, #7c5af0, #3ecfcf);
  --grad-2: linear-gradient(135deg, #f05af0, #7c5af0);

  --radius:    16px;
  --radius-sm: 8px;
  --radius-lg: 24px;

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', sans-serif;

  --nav-h: 72px;
  --section-gap: 96px;
  --container: 1200px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(124,90,240,0.35); }

a { color: inherit; text-decoration: none; transition: opacity .2s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hov); border-radius: 4px; }

/* --- Layout --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Utilities --- */
.gradient-text {
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }

/* ===========================
   NAVBAR
   =========================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(5,5,8,0.85);
  border-color: var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.02em;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.logo-icon {
  width: 32px; height: 32px;
  background: var(--grad-1);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: .9rem;
  color: #fff;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--surface-hov);
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  transition: border-color .2s, color .2s;
  flex-shrink: 0;
}
.status-badge:hover { border-color: var(--border-hov); color: var(--text); }

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 6px #2ecc71;
  animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 6px #2ecc71; }
  50% { box-shadow: 0 0 12px #2ecc71; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}

/* ===========================
   HERO
   =========================== */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
  text-align: center;
  overflow: hidden;
}

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

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}
.orb-1 {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -200px; left: -200px;
  animation: float1 8s ease-in-out infinite;
}
.orb-2 {
  width: 500px; height: 500px;
  background: var(--accent-2);
  bottom: -100px; right: -150px;
  animation: float2 10s ease-in-out infinite;
}
.orb-3 {
  width: 400px; height: 400px;
  background: var(--accent-3);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: .15;
  animation: float3 12s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, 30px); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, -40px); }
}
@keyframes float3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.2); }
}

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

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-hov);
  background: var(--surface);
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 32px;
  letter-spacing: .02em;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad-1);
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.04em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-plus { font-size: 1.4rem; }

.stat-label {
  display: block;
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--border-hov), transparent);
  animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.3; }
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  transition: transform .2s var(--ease-out), opacity .2s, box-shadow .2s;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
  letter-spacing: -.01em;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad-1);
  color: #fff;
  box-shadow: 0 4px 24px rgba(124,90,240,.35);
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(124,90,240,.5); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-hov);
}
.btn-ghost:hover { background: var(--surface-hov); }

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

/* ===========================
   SECTIONS COMMON
   =========================== */
section { padding: var(--section-gap) 0; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(62,207,207,.1);
  border: 1px solid rgba(62,207,207,.2);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ===========================
   ABOUT
   =========================== */
#about { background: var(--bg-2); }

/* Header */
.about-header {
  max-width: 720px;
  margin-bottom: 56px;
}

.about-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 4px;
}

/* Stats bar */
.about-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.about-stat {
  flex: 1;
  min-width: 140px;
  text-align: center;
}

.about-stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -.05em;
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}
.about-stat-num span { font-size: 1.6rem; }

.about-stat-label {
  display: block;
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: .03em;
}

.about-stat-sep {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* Body grid */
.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

/* Mission card */
.about-mission {
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .3s, transform .3s var(--ease-out);
}
.about-mission:hover { border-color: var(--border-hov); transform: translateY(-4px); }

.about-mission-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(124,90,240,.12);
  border: 1px solid rgba(124,90,240,.2);
  display: grid;
  place-items: center;
  color: var(--accent);
}

.about-mission h3,
.about-hosting h3,
.about-legal h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.about-mission p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Hosting card */
.about-hosting {
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .3s, transform .3s var(--ease-out);
}
.about-hosting:hover { border-color: var(--border-hov); transform: translateY(-4px); }

.about-hosting p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.hosting-providers {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.provider { flex: 1; }

.provider-name {
  display: block;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -.01em;
}

.provider-loc {
  display: block;
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.provider-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

/* Legal card */
.about-legal {
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .3s, transform .3s var(--ease-out);
}
.about-legal:hover { border-color: var(--border-hov); transform: translateY(-4px); }

.legal-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.legal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.legal-item:last-child { border-bottom: none; padding-bottom: 0; }
.legal-item:first-child { padding-top: 0; }

.legal-key {
  font-size: .8rem;
  color: var(--text-dim);
  font-weight: 500;
}

.legal-val {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

/* ===========================
   SERVICES + PROJECTS (merged)
   =========================== */
#services { background: var(--bg); }

.offerings-group {
  margin-bottom: 56px;
}
.offerings-group:last-child { margin-bottom: 0; }

.offerings-group-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.group-pill {
  flex-shrink: 0;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid;
}
.group-pill.infra {
  color: var(--accent-2);
  background: rgba(62,207,207,.08);
  border-color: rgba(62,207,207,.25);
}
.group-pill.tools {
  color: var(--accent);
  background: rgba(124,90,240,.08);
  border-color: rgba(124,90,240,.25);
}

.group-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.bento-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.bento-card {
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, transform .3s var(--ease-out);
  cursor: default;
}
.bento-card:hover {
  border-color: rgba(124,90,240,.4);
  transform: translateY(-4px);
}
.bento-card:hover .bento-glow { opacity: 1; }

.bento-lg {
  grid-column: span 1;
}

.bento-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}

.bento-card h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -.02em;
}

.bento-card p {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.bento-link {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity .2s;
}
.bento-link:hover { opacity: .75; }

.mirror-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 16px 0 20px;
}

.mirror-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 500;
}

.mirror-list a {
  color: var(--text-muted);
  transition: color .2s;
}
.mirror-list a:hover { color: var(--text); }

.mirror-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
  flex-shrink: 0;
}

.mirror-protocols {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.protocol-badge {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(62,207,207,.08);
  border: 1px solid rgba(62,207,207,.2);
  color: var(--accent-2);
}

.bento-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(124,90,240,.15);
  border: 1px solid rgba(124,90,240,.3);
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
}

.bento-glow {
  position: absolute;
  bottom: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(124,90,240,.15), transparent 70%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}

/* ===========================
   PROJECTS
   =========================== */
#projects { background: var(--bg-2); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color .3s, transform .3s var(--ease-out);
}
.project-card:hover {
  border-color: var(--border-hov);
  transform: translateY(-6px);
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.project-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}
.project-icon.analytics { background: rgba(124,90,240,.15); }
.project-icon.techbag   { background: rgba(62,207,207,.15); }
.project-icon.hosting   { background: rgba(240,90,240,.15); }

.project-link {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: .9rem;
  color: var(--text-muted);
  transition: border-color .2s, color .2s, background .2s;
}
.project-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(124,90,240,.1);
}

.project-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -.02em;
}

.project-card p {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tags span {
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--bg-3);
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ===========================
   COMMITMENTS
   =========================== */
#commitments {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

#commitments::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(124,90,240,.07), transparent 70%);
  pointer-events: none;
}

.commitments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.commitment-item {
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color .3s, transform .3s var(--ease-out);
}
.commitment-item:hover {
  border-color: var(--border-hov);
  transform: translateY(-4px);
}

.commitment-num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -.05em;
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: .4;
  line-height: 1;
}

.commitment-body h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -.02em;
}

.commitment-body p {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.7;
}

/* ===========================
   CONTACT
   =========================== */
#contact { background: var(--bg-2); }

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Left panel */
.contact-panel .section-label { margin-bottom: 16px; }
.contact-panel .section-title { margin-bottom: 16px; }

.contact-intro {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .2s, transform .2s var(--ease-out), background .2s;
}
a.contact-card:hover {
  border-color: var(--border-hov);
  transform: translateX(4px);
  background: var(--surface-hov);
}
.contact-card--static { cursor: default; }

.contact-card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.contact-card-label {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-card-value {
  display: block;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
}

.contact-card-arrow {
  margin-left: auto;
  font-size: .9rem;
  color: var(--text-dim);
  transition: color .2s, transform .2s;
}
a.contact-card:hover .contact-card-arrow {
  color: var(--accent-2);
  transform: translate(2px, -2px);
}

/* Contact Form */
.contact-form {
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-note {
  font-size: .78rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: -4px;
}

select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: .9rem;
  transition: border-color .2s, background .2s;
  outline: none;
  width: 100%;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(240,240,248,0.4)' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
select:focus {
  border-color: var(--accent);
  background-color: rgba(124,90,240,.06);
}
select option { background: #111120; color: var(--text); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .02em;
}

input, textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: .9rem;
  transition: border-color .2s, background .2s;
  outline: none;
  resize: vertical;
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:focus, textarea:focus {
  border-color: var(--accent);
  background: rgba(124,90,240,.06);
}

/* ===========================
   FOOTER
   =========================== */

/* CTA Banner */
.footer-cta {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
}

.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-cta-label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.footer-cta-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
}

/* Main footer */
.footer-main {
  background: var(--bg);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo { margin-bottom: 12px; }

.footer-brand p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: border-color .2s, color .2s, background .2s;
}
.footer-socials a:hover {
  border-color: var(--border-hov);
  color: var(--text);
  background: var(--surface-hov);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.footer-col a {
  font-size: .875rem;
  color: var(--text-muted);
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col a:hover { color: var(--text); }

.footer-status-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-status-link .status-dot { flex-shrink: 0; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: .82rem;
  color: var(--text-dim);
}

.footer-made { display: flex; align-items: center; }

/* ===========================
   LEGAL PAGES
   =========================== */

/* Hero */
.legal-hero {
  position: relative;
  padding: calc(var(--nav-h) + 80px) 0 72px;
  overflow: hidden;
  background: var(--bg-2);
}

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

.legal-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
  transition: color .2s, gap .2s;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--surface);
}
.legal-back:hover { color: var(--text); gap: 10px; }

.legal-hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-top: 12px;
}

.legal-updated {
  display: inline-block;
  margin-top: 20px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: .04em;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
}

/* Layout */
.legal-page {
  background: var(--bg);
  padding: 64px 0 96px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

/* TOC Sidebar */
.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.legal-toc-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.legal-toc nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-toc nav a {
  font-size: .82rem;
  color: var(--text-muted);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
  line-height: 1.4;
}
.legal-toc nav a:hover {
  color: var(--text);
  background: var(--surface-hov);
}

/* Content */
.legal-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legal-section {
  border-radius: var(--radius-lg);
  padding: 36px 40px;
}

.legal-section h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.legal-section h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 10px;
  letter-spacing: -.02em;
}
.legal-section h3:first-of-type { margin-top: 4px; }

.legal-section p {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}
.legal-section p:last-child { margin-bottom: 0; }

.legal-section a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity .2s;
}
.legal-section a:hover { opacity: .75; }

/* Info grid */
.legal-info-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.legal-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.legal-info-item:last-child { border-bottom: none; }

.legal-info-key {
  font-size: .8rem;
  color: var(--text-dim);
  font-weight: 500;
  flex-shrink: 0;
}

.legal-info-val {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  text-align: right;
}

/* Hosting providers */
.legal-providers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.legal-provider-card {
  border-radius: var(--radius);
  padding: 20px 24px;
}

.legal-provider-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -.02em;
  color: var(--text);
}

.legal-provider-card p {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

/* List */
.legal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 12px;
}

.legal-list li {
  position: relative;
  padding-left: 15px;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.legal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
}

/* Table */
.legal-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 8px;
}

.legal-table-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
  color: var(--text-muted);
}
.legal-table-row:last-child { border-bottom: none; }

.legal-table-head {
  background: var(--surface);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Rights grid */
.legal-rights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0 20px;
}

.legal-right-item {
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color .3s, transform .3s var(--ease-out);
}
.legal-right-item:hover {
  border-color: var(--border-hov);
  transform: translateY(-3px);
}

.legal-right-icon {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.legal-right-item h3 {
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  letter-spacing: -.01em;
}

.legal-right-item p {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Highlight banner */
.legal-highlight {
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-color: rgba(62,207,207,.25);
  background: rgba(62,207,207,.05);
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-highlight-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.legal-highlight strong { color: var(--text); }

/* Contact button */
.legal-contact-row { margin-top: 16px; }

.legal-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color .2s, background .2s, transform .2s var(--ease-out);
  text-decoration: none !important;
}
.legal-contact-btn:hover {
  border-color: var(--border-hov);
  background: var(--surface-hov);
  transform: translateY(-2px);
  opacity: 1 !important;
}

.legal-note {
  font-size: .8rem !important;
  color: var(--text-dim) !important;
  margin-top: 12px !important;
  font-style: italic;
}

/* Responsive legal pages */
@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    position: static;
    display: none;
  }

  .legal-section {
    padding: 28px 24px;
  }

  .legal-rights-grid {
    grid-template-columns: 1fr 1fr;
  }

  .legal-providers {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .legal-rights-grid {
    grid-template-columns: 1fr;
  }

  .legal-table-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .legal-table-head { display: none; }

  .legal-section {
    padding: 24px 20px;
  }
}

/* ===========================
   MOBILE NAV DRAWER
   =========================== */
@media (max-width: 900px) {
  .nav-links, .status-badge { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(5,5,8,0.97);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    gap: 4px;
  }
  .nav-links.open a {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-text .section-title { margin-bottom: 16px; }
}

@media (max-width: 1100px) {
  .about-body { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --section-gap: 72px; }

  .about-body { grid-template-columns: 1fr; }
  .about-stats { padding: 20px 24px; gap: 0; }
  .about-stat { min-width: 50%; padding: 12px 0; }
  .about-stat-sep { display: none; }

  .bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .projects-grid { grid-template-columns: 1fr; }
  .commitments-grid { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 48px; }

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

  .hero-stats { gap: 24px; }
  .stat-num { font-size: 1.5rem; }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  :root { --section-gap: 60px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-cta { padding: 48px 0; }

  .about-cards { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; max-width: 280px; }

  .contact-form { padding: 24px; }
}
