:root {
  --bg: #0a0e17;
  --bg-2: #0e1320;
  --ink: #e8edf6;
  --muted: #8a96ad;
  --amber: #ffb347;
  --amber-2: #ff8c42;
  --cyan: #38e1ff;
  --green: #3ddc84;
  --line: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-brd: rgba(255, 255, 255, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ambient glow background */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60rem 40rem at 80% -10%, rgba(255, 140, 66, 0.12), transparent 60%),
    radial-gradient(50rem 40rem at 0% 20%, rgba(56, 225, 255, 0.10), transparent 55%),
    var(--bg);
}

a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1080px, 90%); margin-inline: auto; }
.mono { font-family: "JetBrains Mono", monospace; }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--amber); color: #000; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem clamp(1rem, 5vw, 3rem);
  background: rgba(10, 14, 23, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 700; font-size: 1.3rem; letter-spacing: .12em; color: var(--ink);
  display: flex; align-items: center; gap: .55rem;
}
.brand:hover { text-decoration: none; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: pulse 2s infinite; }
.nav-links { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2rem); }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  color: #1a1206 !important; padding: .45rem 1.1rem; border-radius: 999px; font-weight: 700;
}
@media (max-width: 560px) { .nav-links a:not(.nav-cta) { display: none; } }

/* HERO */
.hero {
  position: relative; overflow: hidden;
  min-height: 92vh; display: grid; place-items: center; text-align: center;
  padding: 5rem 1.5rem 4rem;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }

/* concentric signal waves */
.waves { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; }
.waves span {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(56, 225, 255, 0.25);
  width: 220px; height: 220px;
  animation: ripple 4s ease-out infinite;
}
.waves span:nth-child(2) { animation-delay: 1s; }
.waves span:nth-child(3) { animation-delay: 2s; }
.waves span:nth-child(4) { animation-delay: 3s; }
@keyframes ripple {
  0% { transform: scale(.4); opacity: .9; border-color: rgba(255, 140, 66, .5); }
  100% { transform: scale(4.2); opacity: 0; border-color: rgba(56, 225, 255, .1); }
}

.eyebrow {
  font-family: "JetBrains Mono", monospace; font-size: .8rem; letter-spacing: .25em;
  color: var(--cyan); margin: 0 0 1.2rem; display: inline-flex; align-items: center; gap: .6rem;
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 12px #ff4d4d; animation: pulse 1.4s infinite; }

.callsign {
  font-size: clamp(4rem, 18vw, 9rem); margin: 0; font-weight: 700; line-height: .9;
  letter-spacing: .02em;
  background: linear-gradient(180deg, #fff 30%, #ffcaa0 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: 0 0 60px rgba(255, 140, 66, 0.25);
}
.callsign span { color: var(--amber); -webkit-text-fill-color: var(--amber); }
.lead { font-size: clamp(1.1rem, 3vw, 1.5rem); margin: 1rem 0 .25rem; font-weight: 500; }
.qth-line { color: var(--muted); font-family: "JetBrains Mono", monospace; letter-spacing: .08em; margin: 0 0 2rem; }

.freq-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-bottom: 2.2rem;
}
.freq {
  display: flex; flex-direction: column; align-items: center;
  background: var(--glass); border: 1px solid var(--glass-brd);
  border-radius: 12px; padding: .6rem 1.1rem; min-width: 90px;
  backdrop-filter: blur(8px);
}
.freq-band { font-family: "JetBrains Mono", monospace; font-weight: 700; color: var(--amber); font-size: 1.05rem; }
.freq-detail { font-size: .72rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.cta { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.btn {
  display: inline-block; padding: .85rem 1.6rem; border-radius: 12px; font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease; cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-3px); }
.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-2)); color: #1a1206;
  box-shadow: 0 8px 26px rgba(255, 140, 66, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 34px rgba(255, 140, 66, 0.5); }
.btn-ghost { border: 1px solid var(--glass-brd); color: var(--ink); background: var(--glass); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.callsign-note { color: var(--muted); margin-top: 1.6rem; font-size: .95rem; }

/* SECTIONS */
.section { padding: clamp(3.5rem, 9vw, 7rem) 0; position: relative; }
.kicker { font-family: "JetBrains Mono", monospace; color: var(--cyan); font-size: .8rem; letter-spacing: .2em; }
.section-title {
  font-size: clamp(1.9rem, 5vw, 3rem); margin: .4rem 0 1.4rem; font-weight: 700; line-height: 1.1;
}
.section-sub { color: var(--muted); max-width: 620px; }

/* GLASS card base */
.glass {
  background: var(--glass); border: 1px solid var(--glass-brd);
  border-radius: 18px; backdrop-filter: blur(10px);
  transition: transform .2s ease, border-color .2s ease;
}

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; }
.about-text { padding: 2rem; }
.about-text p { margin: 0 0 1rem; }
.about-text strong { color: var(--ink); border-bottom: 1px dotted rgba(255,179,71,.5); }
.signoff { color: var(--amber) !important; font-weight: 700; font-size: 1.1rem; border: 0 !important; }
.stats-col { display: flex; flex-direction: column; gap: 1.5rem; }
.stat-card { padding: 1.4rem 1.6rem; display: flex; flex-direction: column; }
.stat-card:hover { transform: translateY(-4px); border-color: rgba(255,179,71,.4); }
.stat-num { font-family: "JetBrains Mono", monospace; font-size: 1.8rem; font-weight: 700; color: var(--amber); }
.stat-label { color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }

/* SHACK */
.rig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.rig { padding: 1.8rem; }
.rig:hover { transform: translateY(-6px); border-color: rgba(56,225,255,.4); }
.rig-icon { font-size: 2.2rem; margin-bottom: .6rem; }
.rig h3 { margin: .2rem 0 .1rem; font-size: 1.3rem; }
.rig-tag { font-family: "JetBrains Mono", monospace; font-size: .78rem; color: var(--cyan); letter-spacing: .05em; margin: 0 0 .8rem; }
.rig p { color: var(--muted); margin: 0; }
.rig p strong { color: var(--ink); }

/* LOGBOOK */
.logbook-frame {
  padding: 1rem; margin: 1.5rem 0; overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: #ffffff;
}
.logbook-frame iframe { display: block; width: 640px; max-width: 100%; border-radius: 10px; background: #ffffff; }

/* CONTACT */
.contact-card { padding: clamp(2rem, 5vw, 3.5rem); text-align: center; }
.contact-card address { font-style: normal; line-height: 2; margin: 1rem 0 1.6rem; color: var(--muted); }
.contact-card address strong { color: var(--ink); font-size: 1.2rem; }

/* FOOTER */
.footer { border-top: 1px solid var(--line); padding: 3rem 0; text-align: center; color: var(--muted); }
.footer-call {
  font-weight: 700; font-size: 1.5rem; letter-spacing: .15em; color: var(--ink); margin: 0 0 .4rem;
}
.footer .small { font-size: .85rem; opacity: .8; }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

@media (prefers-reduced-motion: reduce) {
  .waves span, .live-dot, .brand-dot { animation: none; }
  .waves span:first-child { opacity: .25; }
}
