:root {
  --navy: #0b2a5b;
  --navy-dark: #071c3f;
  --purple: #5a2d82;
  --green: #6fbe44;
  --grey-bg: #f4f5f7;
  --text: #1c1c1c;
  --white: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
}

a { text-decoration: none; color: inherit; }

/* ---------- Top utility bar ---------- */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 32px;
  border-bottom: 1px solid #e5e5e5;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -1px;
}

.top-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 20px;
  font-size: 14px;
}

.top-nav a { color: #333; }
.top-nav a:hover { color: var(--navy); }

.login-btn {
  background: var(--navy);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}

/* ---------- Secondary nav row ---------- */
.secondary-nav {
  display: flex;
  gap: 24px;
  padding: 12px 32px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  flex-wrap: wrap;
}

/* ---------- Alert banner ---------- */
.alert-banner {
  background: var(--purple);
  color: var(--white);
  padding: 14px 32px;
  font-size: 14px;
  line-height: 1.5;
}

.alert-banner strong { display: block; margin-bottom: 2px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 40px 32px 56px;
}

.breadcrumb {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 20px;
}

.breadcrumb span { margin: 0 6px; }

.hero h1 {
  font-size: 42px;
  margin: 0 0 16px;
  border-left: 6px solid var(--green);
  padding-left: 18px;
}

.hero p {
  max-width: 640px;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
  padding-left: 24px;
}

/* ---------- Popular links ---------- */
.section {
  padding: 48px 32px;
}

.section.grey { background: var(--grey-bg); }

.section h2 {
  font-size: 22px;
  margin-bottom: 24px;
  color: var(--navy);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.link-card {
  background: var(--white);
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 22px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  min-height: 100px;
  transition: box-shadow 0.15s ease;
}

.link-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); }

.link-card .arrow { color: var(--green); font-size: 20px; }

/* ---------- Hub cards ---------- */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.hub-card {
  background: var(--white);
  border-radius: 10px;
  padding: 28px;
  border: 1px solid #e2e2e2;
}

.hub-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 19px;
}

.hub-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  margin: 0 0 18px;
}

.hub-card .link-out {
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--navy-dark);
  color: #cdd6e6;
  padding: 32px;
  font-size: 13px;
  text-align: center;
}

/* ---------- Voice widget ---------- */
#voice-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 1000;
  font-size: 26px;
}

#voice-launcher:hover { background: var(--navy-dark); }

#voice-window {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 320px;
  max-width: calc(100vw - 48px);
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  overflow: hidden;
  z-index: 1000;
  display: none;
  flex-direction: column;
}

#voice-window.open { display: flex; }

.voice-header {
  background: var(--navy);
  color: var(--white);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  cursor: move;
}

.voice-header button {
  background: none;
  border: none;
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
}

.voice-body {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.voice-status {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  text-align: center;
}

.voice-orb {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--green), var(--navy));
  transition: transform 0.2s ease;
}

.voice-orb.listening { animation: pulse 1.2s infinite ease-in-out; }
.voice-orb.error { background: #c0392b; }

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.voice-controls {
  display: flex;
  gap: 10px;
}

.voice-controls button {
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
}

.btn-start { background: var(--green); color: var(--white); }
.btn-end { background: #c0392b; color: var(--white); }
.btn-start:disabled, .btn-end:disabled { opacity: 0.5; cursor: not-allowed; }
