/* ══════════════════════════════════════════
   WAL-NET — Shared Design System
   Aurora Premium · Indigo/Sky/Teal/Amber
   ══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&family=IBM+Plex+Mono:wght@400;500&display=swap');

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

:root {
  --bg-0:           #020308;
  --bg-1:           #04050e;
  --bg-2:           #070a18;

  --indigo:         #4f46e5;
  --indigo-lt:      #818cf8;
  --indigo-dim:     rgba(79,70,229,0.12);
  --indigo-border:  rgba(129,140,248,0.18);
  --indigo-glow:    0 4px 28px rgba(79,70,229,0.5);

  --sky:            #0ea5e9;
  --sky-lt:         #38bdf8;
  --sky-dim:        rgba(14,165,233,0.1);
  --sky-border:     rgba(56,189,248,0.18);

  --teal:           #0d9488;
  --teal-lt:        #2dd4bf;
  --teal-dim:       rgba(13,148,136,0.1);
  --teal-border:    rgba(45,212,191,0.18);

  --amber:          #f59e0b;
  --amber-lt:       #fbbf24;
  --amber-dim:      rgba(245,158,11,0.12);
  --amber-border:   rgba(245,158,11,0.22);
  --amber-glow:     0 4px 24px rgba(245,158,11,0.35);

  --text-0:         #f8fafc;
  --text-1:         rgba(255,255,255,0.5);
  --text-2:         rgba(255,255,255,0.25);

  --glass-bg:       rgba(255,255,255,0.04);
  --glass-border:   rgba(255,255,255,0.08);

  --ff-head:        'Syne', sans-serif;
  --ff-body:        'IBM Plex Sans', sans-serif;
  --ff-mono:        'IBM Plex Mono', monospace;

  --ease:           cubic-bezier(0.4,0,0.2,1);
  --t:              0.28s;

  /* ── Legacy token bridge (removed after HTML rebuild) ── */
  --violet:        var(--indigo);
  --violet-bright: var(--indigo-lt);
  --violet-dim:    var(--indigo-dim);
  --violet-border: var(--indigo-border);
  --violet-glow:   var(--indigo-glow);
  --cyan:          var(--sky-lt);
  --cyan-dim:      var(--sky-dim);
  --border:        var(--glass-border);
  --border-sub:    rgba(255,255,255,0.06);
  --bg-card:       var(--glass-bg);
  --bg-card-h:     rgba(255,255,255,0.06);
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--ff-body);
  background: var(--bg-0);
  color: var(--text-0);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── CONTAINER ── */
.container { width: 100%; padding: 0 20px; }
@media (min-width: 640px)  { .container { padding: 0 32px; } }
@media (min-width: 1024px) { .container { max-width: 1240px; margin: 0 auto; padding: 0 40px; } }

/* ── AURORA / SCANLINES ── */
.aurora-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 160% 70% at 55% -5%, rgba(79,70,229,0.45) 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at -5% 80%,  rgba(14,165,233,0.2) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 105% 85%, rgba(13,148,136,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 10%,  rgba(245,158,11,0.08) 0%, transparent 50%);
}
.scanlines {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(255,255,255,0.012) 2px, rgba(255,255,255,0.012) 4px
  );
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-head); font-weight: 700;
  font-size: 0.84rem; letter-spacing: 0.05em; text-transform: uppercase;
  border: none; border-radius: 6px; cursor: pointer;
  transition: all var(--t) var(--ease);
  padding: 13px 24px; width: 100%; justify-content: center;
}
@media (min-width: 480px) { .btn { width: auto; } }

.btn-primary {
  background: linear-gradient(135deg, var(--indigo), #6366f1);
  color: #fff; box-shadow: var(--indigo-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(79,70,229,0.65); }

.btn-amber {
  background: linear-gradient(135deg, var(--amber), var(--amber-lt));
  color: var(--bg-0); box-shadow: var(--amber-glow);
}
.btn-amber:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(245,158,11,0.5); }

.btn-ghost {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--text-0);
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); transform: translateY(-2px); }

/* ── SECTION RHYTHM ── */
.section { padding: 72px 0; }
@media (min-width: 640px)  { .section { padding: 88px 0; } }
@media (min-width: 1024px) { .section { padding: 100px 0; } }

.section-label {
  font-family: var(--ff-mono); font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--indigo-lt);
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.section-label::before {
  content: ''; width: 18px; height: 1px;
  background: var(--indigo-lt); flex-shrink: 0;
}
.section-title { margin-bottom: 44px; text-align: center; }
@media (min-width: 640px) { .section-title { margin-bottom: 56px; } }
.section-title .section-label { justify-content: center; }
.section-title .section-label::before { display: none; }
.section-title h2 {
  font-family: var(--ff-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.1; margin-bottom: 12px;
}
.section-title h2 em {
  background: linear-gradient(135deg, var(--indigo-lt), var(--sky-lt));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-style: normal;
}
.section-title p { color: var(--text-1); max-width: 540px; margin: 0 auto; font-size: 1rem; line-height: 1.75; }

/* ── HEADER ── */
header {
  position: fixed; top: 0; width: 100%; z-index: 900;
  background: rgba(2,3,8,0.72);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: border-color var(--t) var(--ease);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-head); font-size: 1.22rem; font-weight: 800; color: var(--text-0);
}
.logo img { height: 38px; width: 38px; object-fit: contain; flex-shrink: 0; }
.logo-word .wal { color: var(--amber-lt); }
.logo-word .net { color: var(--sky-lt); }

#nav { display: flex; align-items: center; gap: 20px; }
#nav a {
  font-family: var(--ff-head); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-1); transition: color var(--t) var(--ease);
  position: relative; display: none;
}
@media (min-width: 768px) { #nav a { display: block; } }
#nav a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--indigo-lt);
  transition: width var(--t) var(--ease);
}
#nav a:hover, #nav a.active { color: var(--text-0); }
#nav a:hover::after, #nav a.active::after { width: 100%; }

#nav .nav-cta {
  background: linear-gradient(135deg, var(--indigo), var(--indigo-lt));
  color: #fff; padding: 8px 16px;
  border-radius: 5px; display: block;
  box-shadow: 0 0 18px rgba(79,70,229,0.4); font-size: 0.78rem;
}
#nav .nav-cta::after { display: none; }
.nav-cta:hover { opacity: 0.9; }

.hamburger {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 6px; cursor: pointer; color: var(--text-1); font-size: 0.9rem;
  transition: all var(--t) var(--ease);
}
@media (min-width: 768px) { .hamburger { display: none; } }

/* Mobile nav drawer */
@media (max-width: 767px) {
  #nav {
    position: fixed; top: 0; right: -100%;
    width: 75%; max-width: 300px; height: 100vh;
    background: var(--bg-2); border-left: 1px solid var(--glass-border);
    flex-direction: column; align-items: flex-start;
    padding: 80px 28px 40px; gap: 20px;
    transition: right var(--t) var(--ease); z-index: 850;
  }
  #nav.open { right: 0; }
  #nav a { display: block; font-size: 0.95rem; color: var(--text-1); }
  .nav-cta { width: 100%; text-align: center; }
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 140px 20px 80px;
  position: relative; overflow: hidden; background: var(--bg-1);
}
@media (min-width: 640px) { .page-hero { padding: 160px 32px 90px; } }
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 70% 50%, rgba(79,70,229,0.15) 0%, transparent 60%),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.01) 2px, rgba(255,255,255,0.01) 4px);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 {
  font-family: var(--ff-head);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.08; margin-bottom: 18px;
}
.page-hero h1 em {
  background: linear-gradient(135deg, var(--indigo-lt), var(--sky-lt));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-style: normal;
}
.page-hero p { color: var(--text-1); max-width: 520px; font-size: 1rem; line-height: 1.75; }

/* ── CARD ── */
.card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 10px; padding: 28px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: all var(--t) var(--ease);
  position: relative; overflow: hidden;
}
.card:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-5px); }

.card-icon {
  width: 42px; height: 42px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; margin-bottom: 14px;
}
.card-icon.indigo { background: var(--indigo-dim); border: 1px solid var(--indigo-border); color: var(--indigo-lt); }
.card-icon.sky    { background: var(--sky-dim);    border: 1px solid var(--sky-border);    color: var(--sky-lt); }
.card-icon.teal   { background: var(--teal-dim);   border: 1px solid var(--teal-border);   color: var(--teal-lt); }
.card-icon.amber  { background: var(--amber-dim);  border: 1px solid var(--amber-border);  color: var(--amber-lt); }

/* ── TAGS ── */
.tag {
  font-family: var(--ff-mono); font-size: 0.58rem; font-weight: 500;
  letter-spacing: 0.06em; padding: 3px 8px; border-radius: 3px; display: inline-block;
}
.tag.indigo { color: var(--indigo-lt); background: var(--indigo-dim); border: 1px solid var(--indigo-border); }
.tag.sky    { color: var(--sky-lt);    background: var(--sky-dim);    border: 1px solid var(--sky-border); }
.tag.teal   { color: var(--teal-lt);   background: var(--teal-dim);   border: 1px solid var(--teal-border); }
.tag.amber  { color: var(--amber-lt);  background: var(--amber-dim);  border: 1px solid var(--amber-border); }

/* ── FOOTER ── */
footer {
  background: rgba(2,3,8,1);
  border-top: 1px solid var(--glass-border);
  padding: 56px 20px 28px;
}
@media (min-width: 640px)  { footer { padding: 64px 32px 32px; } }
@media (min-width: 1024px) { footer { padding: 64px 40px 32px; } }

.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 36px; margin-bottom: 40px;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; } }

.footer-brand .logo { margin-bottom: 12px; }
.footer-brand > p {
  color: var(--text-1); font-size: 0.84rem; line-height: 1.75;
  max-width: 280px; margin-bottom: 18px;
}
.social-links { display: flex; gap: 8px; }
.social-link {
  width: 32px; height: 32px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  color: var(--text-1); font-size: 0.75rem; transition: all var(--t) var(--ease);
}
.social-link:hover { border-color: var(--amber-border); color: var(--amber-lt); background: var(--amber-dim); }

.footer-col h5 {
  font-family: var(--ff-head); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-0); margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-1); font-size: 0.82rem; transition: color var(--t) var(--ease); }
.footer-col ul li a:hover { color: var(--amber-lt); }

.footer-contact li {
  display: flex; align-items: flex-start; gap: 8px;
  color: var(--text-1); font-size: 0.82rem; margin-bottom: 8px;
}
.footer-contact .fc-icon {
  color: var(--indigo-lt); flex-shrink: 0; margin-top: 3px; width: 14px; text-align: center;
}
.footer-bottom {
  border-top: 1px solid var(--glass-border); padding-top: 22px;
  display: flex; flex-direction: column; gap: 8px; text-align: center;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
}
.footer-bottom p { color: var(--text-2); font-size: 0.75rem; }
.footer-bottom .c-sky   { color: var(--sky-lt); }
.footer-bottom .c-amber { color: var(--amber-lt); }
