@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

:root {
  --navy: #0a1628;
  --navy-mid: #0f2044;
  --navy-light: #1a3160;
  --teal: #00c9a7;
  --teal-dim: #00a88a;
  --sky: #4db8ff;
  --white: #ffffff;
  --offwhite: #f4f7fb;
  --muted: #8a9bbf;
  --border: rgba(255,255,255,0.08);
  --green: #22c55e;
  --green-bg: rgba(34,197,94,0.12);
  --amber: #f59e0b;
  --amber-bg: rgba(245,158,11,0.12);
  --red: #ef4444;
  --red-bg: rgba(239,68,68,0.12);
  --card: rgba(255,255,255,0.04);
  --card-hover: rgba(255,255,255,0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 5%;
  background: rgba(10,22,40,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1.4rem;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--white);
}
.logo-icon {
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo span { color: var(--teal); }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--muted); font-size: 0.9rem; font-weight: 500;
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links .nav-cta {
  background: var(--teal); color: var(--navy) !important;
  padding: 8px 20px; border-radius: 8px; font-weight: 700 !important;
}
.nav-links .nav-cta:hover { background: var(--teal-dim); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
}
.mobile-menu {
  display: none; position: fixed; top: 70px; left: 0; right: 0;
  background: var(--navy-mid); padding: 24px 5%;
  border-bottom: 1px solid var(--border); z-index: 99;
  flex-direction: column; gap: 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 1rem; }
.mobile-menu a:hover { color: var(--white); }

/* ── UTILITIES ── */
section { padding: 90px 5%; }
.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; line-height: 1.2; margin-bottom: 16px;
}
.section-sub {
  color: var(--muted); font-size: 1rem; line-height: 1.7; max-width: 560px;
}
.section-header { margin-bottom: 52px; }

.btn-primary {
  background: var(--teal); color: var(--navy);
  padding: 14px 28px; border-radius: 10px;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-primary:hover {
  background: var(--teal-dim); transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,201,167,0.3);
}
.btn-ghost {
  color: var(--muted); padding: 14px 28px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  border: 1px solid var(--border); cursor: pointer;
  background: transparent; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,0.2); }

/* ── CHECKER SHARED ── */
.checker-tabs {
  display: flex; gap: 0; margin-bottom: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px; padding: 4px;
  width: fit-content; max-width: 100%;
}
.tab-btn {
  padding: 10px 24px; border-radius: 9px;
  font-weight: 600; font-size: 0.9rem;
  cursor: pointer; border: none;
  background: transparent; color: var(--muted);
  transition: all 0.2s; white-space: nowrap;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.tab-btn.active { background: var(--white); color: var(--navy); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }

.checker-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 36px;
}
.input-row { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.domain-input {
  flex: 1; min-width: 200px;
  padding: 14px 18px; border-radius: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  color: var(--white); font-size: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  outline: none; transition: border-color 0.2s;
}
.domain-input::placeholder { color: var(--muted); }
.domain-input:focus { border-color: var(--teal); }
.selector-input {
  width: 160px; min-width: 120px;
  padding: 14px 18px; border-radius: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  color: var(--white); font-size: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  outline: none; transition: border-color 0.2s;
}
.selector-input::placeholder { color: var(--muted); }
.selector-input:focus { border-color: var(--teal); }
.check-btn {
  background: var(--teal); color: var(--navy);
  padding: 14px 28px; border-radius: 10px;
  font-weight: 700; font-size: 0.95rem;
  border: none; cursor: pointer;
  transition: all 0.2s; display: flex; align-items: center; gap: 8px;
  white-space: nowrap; font-family: 'Plus Jakarta Sans', sans-serif;
}
.check-btn:hover { background: var(--teal-dim); }

/* Results */
.result-box { display: none; }
.result-box.visible { display: block; }
.result-header {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 24px; border-radius: 12px;
  margin-bottom: 20px; border: 1px solid;
}
.result-header.green { background: var(--green-bg); border-color: rgba(34,197,94,0.3); }
.result-header.amber { background: var(--amber-bg); border-color: rgba(245,158,11,0.3); }
.result-header.red { background: var(--red-bg); border-color: rgba(239,68,68,0.3); }
.traffic-light {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0; margin-top: 2px;
}
.traffic-light.green { background: rgba(34,197,94,0.2); }
.traffic-light.amber { background: rgba(245,158,11,0.2); }
.traffic-light.red { background: rgba(239,68,68,0.2); }
.result-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.1rem; }
.result-title.green { color: var(--green); }
.result-title.amber { color: var(--amber); }
.result-title.red { color: var(--red); }
.result-subtitle { color: var(--muted); font-size: 0.875rem; margin-top: 4px; line-height: 1.6; }
.result-record {
  background: rgba(0,0,0,0.3); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 20px;
  font-family: 'Courier New', monospace; font-size: 0.85rem; color: var(--teal);
  word-break: break-all; margin-bottom: 20px; line-height: 1.6;
}
.recommendations {}
.rec-title {
  font-weight: 700; font-size: 0.85rem; margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted);
}
.rec-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.rec-item:last-child { border-bottom: none; }
.rec-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; flex-shrink: 0; margin-top: 1px;
}
.rec-text { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.rec-text strong { color: var(--white); }
.loading-spinner { display: none; text-align: center; padding: 40px; color: var(--muted); }
.loading-spinner.visible { display: block; }
.spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.1); border-top-color: var(--teal);
  animation: spin 0.8s linear infinite; margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 20px; }
.tag { padding: 4px 12px; border-radius: 100px; font-size: 0.78rem; font-weight: 600; background: rgba(255,255,255,0.08); color: var(--muted); }
.tag.good { background: rgba(34,197,94,0.15); color: var(--green); }
.tag.warn { background: rgba(245,158,11,0.15); color: var(--amber); }
.tag.bad { background: rgba(239,68,68,0.15); color: var(--red); }

/* ── FOOTER ── */
footer {
  background: var(--navy); border-top: 1px solid var(--border);
  padding: 48px 5% 32px;
}
.footer-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 40px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.footer-brand p { color: var(--muted); font-size: 0.875rem; max-width: 260px; margin-top: 12px; line-height: 1.6; }
.footer-links h4 {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 16px; color: var(--muted);
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--muted); font-size: 0.875rem; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { color: var(--muted); font-size: 0.8rem; }

/* ── LEARN PAGES ── */
.learn-hero {
  padding: 140px 5% 80px;
  background: var(--navy-mid);
  border-bottom: 1px solid var(--border);
}
.learn-hero .breadcrumb {
  font-size: 0.8rem; color: var(--muted); margin-bottom: 20px;
}
.learn-hero .breadcrumb a { color: var(--teal); text-decoration: none; }
.learn-hero .breadcrumb a:hover { text-decoration: underline; }
.learn-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 16px;
}
.learn-hero p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; max-width: 620px; }

.learn-body { max-width: 780px; margin: 0 auto; padding: 72px 5%; }
.learn-body h2 {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.5rem;
  margin: 52px 0 16px; padding-top: 4px;
}
.learn-body h2:first-child { margin-top: 0; }
.learn-body p { color: var(--muted); font-size: 0.975rem; line-height: 1.85; margin-bottom: 18px; }
.learn-body p strong { color: var(--white); }
.learn-body code {
  background: rgba(0,201,167,0.12); color: var(--teal);
  padding: 2px 8px; border-radius: 5px;
  font-family: 'Courier New', monospace; font-size: 0.9em;
}
.learn-body pre {
  background: rgba(0,0,0,0.35); border: 1px solid var(--border);
  border-radius: 12px; padding: 22px 24px;
  font-family: 'Courier New', monospace; font-size: 0.875rem;
  color: var(--teal); line-height: 1.7; overflow-x: auto;
  margin: 24px 0 28px;
}
.callout {
  border-radius: 12px; padding: 20px 24px;
  margin: 28px 0; display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid;
}
.callout.tip { background: rgba(0,201,167,0.08); border-color: rgba(0,201,167,0.25); }
.callout.warn { background: var(--amber-bg); border-color: rgba(245,158,11,0.25); }
.callout.danger { background: var(--red-bg); border-color: rgba(239,68,68,0.25); }
.callout-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.callout-body { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }
.callout-body strong { color: var(--white); display: block; margin-bottom: 4px; }

.learn-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin: 32px 0;
}
.learn-card-link {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px; text-decoration: none;
  transition: all 0.2s; display: block;
}
.learn-card-link:hover { background: var(--card-hover); border-color: rgba(0,201,167,0.2); transform: translateY(-2px); }
.learn-card-link .icon { font-size: 1.6rem; margin-bottom: 12px; }
.learn-card-link h3 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 6px; color: var(--white); }
.learn-card-link p { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.6s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 16px 5%; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: 60px 5%; }
  .checker-card { padding: 22px; }
  .input-row { flex-direction: column; }
  .check-btn { width: 100%; justify-content: center; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .learn-body { padding: 48px 5%; }
  #signup > div { grid-template-columns: 1fr !important; gap: 36px !important; }
}
@media (max-width: 480px) {
  .checker-tabs { width: 100%; }
  .tab-btn { flex: 1; text-align: center; }
}
