/* ---------- Reset & Base ---------- */
* { box-sizing: border-box; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }

:root {
  /* Brand */
  --brand-500: #2E7BBF;
  --brand-400: #4A92CC;
  --brand-300: #77B1DD;

  /* Dark surfaces */
  --bg-900: #0B1220;  /* page */
  --bg-850: #0D1526;
  --bg-800: #0F182B;  /* section */
  --bg-700: #131E33;  /* cards / nav */
  --line-700: #1E2A41;

  /* Text */
  --text-100: #E6EAF2;
  --text-200: #C9D2E3;

  /* Effects */
  --shadow-md: 0 8px 24px rgba(0,0,0,.30);
  --shadow-sm: 0 6px 18px rgba(0,0,0,.22);
  --r-lg: 16px;
  --r-md: 12px;

  /* Layout */
  --container: 1100px;
  --sp-1: 8px;  --sp-2: 12px; --sp-3: 16px; --sp-4: 20px;
  --sp-5: 28px; --sp-6: 40px; --sp-7: 72px;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-100);
  background: var(--bg-900);
}

.container { width: min(var(--container), 92%); margin-inline: auto; }
.muted { color: var(--text-200); }
.accent { color: var(--brand-300); }
.pill {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: rgba(46,123,191,.15); color: var(--brand-300); font-weight: 700;
}

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 80;
  background: color-mix(in srgb, var(--bg-900) 75%, transparent);
  backdrop-filter: blur(6px) saturate(140%);
  border-bottom: 1px solid var(--line-700);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-3) 0;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--text-100); }
.brand-name { font-weight: 800; letter-spacing: .2px; }
nav a { color: var(--text-200); font-weight: 600; margin-left: var(--sp-4); }
nav a:hover, nav a:focus { color: var(--brand-300); }

.logo-img {
  height: 80px; width: auto;
  padding: 6px 8px;
  background: #fff;                 /* white canvas for dark mode */
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 20px;
  background: var(--brand-500);
  color: #fff;
  border-radius: var(--r-md);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform .06s ease, filter .2s ease;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 10px 14px; font-weight: 700; }
.btn-ghost {
  background: transparent; color: var(--brand-300);
  border: 1px solid var(--line-700);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: clip;
  border-bottom: 1px solid var(--line-700);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 70% at 50% -10%, rgba(46,123,191,.35) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-900) 0%, var(--bg-800) 100%),
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.03) 0 1px,
      transparent 1px 40px
    );
}
.hero-inner {
  position: relative; z-index: 1;
  text-align: center;
  padding: clamp(64px, 12vw, 120px) 0 var(--sp-6);
}
.kicker { color: var(--text-200); letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; margin: 0 0 var(--sp-2); }
.hero h1 {
  margin: 0 0 var(--sp-3);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}
.sub { max-width: 720px; margin: 0 auto var(--sp-5); color: var(--text-200); }
.cta-row { display: inline-flex; gap: var(--sp-3); }

/* ---------- Sections ---------- */
.section { padding: var(--sp-7) 0; }
.section + .section { border-top: 1px solid var(--line-700); }
.section .section-header { margin-bottom: var(--sp-5); }
.section h2 { margin: 0 0 var(--sp-2); font-size: clamp(1.4rem, 2.5vw, 1.8rem); }

/* Feature Cards */
.feature-grid {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--bg-700);
  border: 1px solid var(--line-700);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin: var(--sp-2) 0 var(--sp-1); font-size: 1.15rem; }
.icon { color: var(--brand-300); width: 36px; height: 36px; }
.icon svg { width: 100%; height: 100%; }

/* About layout */
.about {
  display: grid; gap: var(--sp-5);
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
}
.about-art { border: 1px solid var(--line-700); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.bullets { margin: var(--sp-3) 0 0; padding-left: 18px; color: var(--text-200); }
.bullets li { margin: 6px 0; }

/* Contact card */
.contact-card {
  background: var(--bg-700);
  border: 1px solid var(--line-700);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  max-width: 720px;
}
.contact-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line-700);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row svg { width: 20px; height: 20px; color: var(--brand-300); }
.contact-card a { color: var(--brand-300); font-weight: 700; }

/* Footer */
footer {
  background: var(--bg-850);
  border-top: 1px solid var(--line-700);
  padding: var(--sp-4) 0;
  text-align: center;
  color: var(--text-200);
}

/* Responsive */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  nav a { margin-left: var(--sp-3); }
}

/* Motion preference */
@media (prefers-reduced-motion: reduce) {
  .btn, .card { transition: none; }
}
