:root {
  /* Color Palette - Trendy Blue & Gray */
  --primary: #0061FF;
  --primary-soft: #EBF3FF;
  --primary-dark: #004ecc;
  --secondary: #475569;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  
  /* Modern Effects */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --radius: 12px;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Subtle background texture */
body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3BaseFilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/feTurbulence%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  flex: 0 0 auto;
  display: block;
}

@media (max-width: 480px) {
  .brand-mark { width: 22px; height: 22px; }
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

#currency-selector {
  min-width: 140px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 0 12px;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.2s;
  outline: none;
}

#currency-selector:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

/* Main Hero */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* Cards & Layout */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-premium);
  padding: 2.5rem;
  margin-bottom: 3rem;
  transition: transform 0.3s ease;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.hub-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.hub-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.card-accent {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #eef3fb;
}

.card-accent .bar {
  display: inline-block;
  height: 4px;
  border-radius: 999px;
}

.card-accent .bar-long {
  width: 40px;
  background: #2d6cdf;
}

.card-accent .bar-short {
  width: 18px;
  background: #8aa8e8;
}

@media (max-width: 480px) {
  .card-accent { height: 44px; margin-bottom: 14px; }
}

.hub-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

/* Calculator Interface */
.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
}

@media (max-width: 900px) {
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero h1 { font-size: 2.5rem; }
}

.input-group {
  margin-bottom: 1.75rem;
}

.input-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: var(--secondary);
}

.input-wrapper input, .input-wrapper select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-main);
  transition: all 0.2s;
  background: #fff;
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.results-panel {
  background: #fdfdfd;
  border-radius: var(--radius);
  padding: 2.5rem;
  border: 2px solid var(--primary-soft);
  height: fit-content;
  position: sticky;
  top: 120px;
}

.result-item {
  margin-bottom: 1.5rem;
}

.result-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.result-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

/* Ad Slot Placeholders */
.ad-placeholder {
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.85rem;
  margin: 3rem 0;
  min-height: 100px;
}

/* Typography & Sections */
section {
  margin-bottom: 4rem;
}

section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

p {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

/* Compliance Footer */
.compliance-statements {
  background: var(--primary-soft);
  padding: 2rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
}

footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 5rem 0 3rem;
  margin-top: 6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
}

.trust-strip {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Sticky Notice */
.notice-box {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: var(--radius);
  padding: 1.25rem 2rem;
  margin-bottom: 3rem;
}

.notice-box ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.notice-box li {
  font-weight: 700;
  font-size: 0.85rem;
  color: #92400e;
  text-transform: uppercase;
}

.hub-card h3 {
  font-size: 18px;
  line-height: 1.3;
  white-space: normal;
  word-break: keep-all;
}
