/* ===== DESIGN TOKENS ===== */
:root {
  --navy: #0D1B2A;
  --navy-2: #162840;
  --slate: #4A5568;
  --slate-l: #718096;
  --orange: #C4501F;
  --orange-h: #A8401A;
  --bg: #F8F9FA;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --text: #1A202C;
  --text-m: #4A5568;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(13, 27, 42, 0.10);
  --shadow-lg: 0 12px 40px rgba(13, 27, 42, 0.16);
  --gradient: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== UTILITY ===== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section--alt {
  background: var(--white);
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}

.tag--orange { background: #FDE8DC; color: var(--orange); }
.tag--navy { background: #DDEAF8; color: var(--navy); }
.tag--slate { background: #EDF2F7; color: var(--slate); }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-m);
  max-width: 580px;
}

.divider {
  width: 48px;
  height: 3px;
  background: var(--orange);
  margin: 20px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all .2s;
  border: none;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange-h);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196, 80, 31, .35);
  color: var(--white);
}

.btn-outline {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* ===== NAV ===== */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 27, 42, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background .35s, border-color .35s, backdrop-filter .35s;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  object-fit: cover;
}

.nav-brand-text {
  color: var(--white);
}

.nav-brand-text .name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}

.nav-brand-text .role {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, .6);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  padding-bottom: 2px;
  transition: color .2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width .25s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  font-size: 1.4rem;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--navy);
  padding: 16px 24px 24px;
  gap: 16px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
}

/* ===== TOOL LAYOUT GLOBALS ===== */
.tool-header {
  padding: 140px 0 60px;
  background: var(--navy);
  color: var(--white);
  text-align: center;
}

.tool-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--white);
}

.tool-header p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
}

.tool-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 32px;
  margin-bottom: 32px;
}

/* Glassmorphism helpers for tools */
.glass-panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(196, 80, 31, 0.1);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}
