/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #4f6ef7;
  --violet: #6c47ff;
  --blue-light: #eef1fe;
  --violet-light: #f0ecff;
  --dark: #0d1117;
  --dark-2: #161b22;
  --dark-3: #21262d;
  --text: #1a1f2e;
  --text-2: #4a5568;
  --text-3: #6b7280;
  --border: #e5e8f0;
  --white: #ffffff;
  --success: #10b981;
  --warning: #f59e0b;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 2px 16px rgba(79,110,247,.09);
  --shadow-lg: 0 8px 40px rgba(79,110,247,.15);
  --font-head: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: #f8f9ff;
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.01em;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--violet); }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: 0px;
}
.logo-text span { color: var(--blue); }

.main-nav {
  display: flex; align-items: center; gap: 6px;
}
.main-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .93rem;
  color: var(--text-2);
  padding: 6px 14px;
  border-radius: 8px;
  transition: all .18s;
  text-decoration: none;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--blue);
  background: var(--blue-light);
}

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all .2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79,110,247,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: .8rem; font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.hero h1 span { color: var(--blue); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto 40px;
  font-weight: 400;
}

/* ===== CALCULATOR CARD ===== */
.calc-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  max-width: 720px;
  margin: 0 auto 60px;
  border: 1px solid var(--border);
}

.calc-tabs {
  display: flex; gap: 6px;
  background: var(--blue-light);
  padding: 5px;
  border-radius: 10px;
  margin-bottom: 30px;
}
.calc-tab {
  flex: 1; padding: 9px 14px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 500; font-size: .9rem;
  color: var(--text-3);
  border-radius: 7px;
  transition: all .2s;
}
.calc-tab.active {
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 1px 6px rgba(79,110,247,.14);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.calc-grid.single { grid-template-columns: 1fr; }

.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: .85rem; font-weight: 600;
  color: var(--text-2);
  letter-spacing: .01em;
}
.form-group input, .form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body); font-size: .97rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  appearance: none;
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79,110,247,.12);
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a5568' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.btn-calc {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: white;
  border: none; cursor: pointer;
  border-radius: var(--radius);
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  letter-spacing: .02em;
  transition: opacity .2s, transform .15s;
  margin-top: 8px;
}
.btn-calc:hover { opacity: .9; transform: translateY(-1px); }
.btn-calc:active { transform: translateY(0); }

.result-box {
  margin-top: 22px;
  background: linear-gradient(135deg, var(--blue-light), var(--violet-light));
  border: 1.5px solid rgba(79,110,247,.2);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  display: none;
}
.result-box.show { display: block; animation: fadeIn .3s ease; }
.result-label { font-size: .82rem; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.result-value {
  font-family: var(--font-head);
  font-size: 2.4rem; font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.result-formula { font-size: .85rem; color: var(--text-2); }
.result-warning {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(245,158,11,.1);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 8px;
  font-size: .8rem; color: #92400e;
}

@keyframes fadeIn { from { opacity:0; transform: translateY(6px); } to { opacity:1; transform: translateY(0); } }

.calc-note {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(16,185,129,.07);
  border-left: 3px solid var(--success);
  border-radius: 0 8px 8px 0;
  font-size: .83rem; color: var(--text-2);
}

/* ===== COMMON CONVERSIONS TABLE ===== */
.section { padding: 60px 0; }
.section-alt { background: white; }
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
.section-sub { color: var(--text-2); max-width: 560px; margin-bottom: 32px; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: white; }
thead th {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: white;
  font-family: var(--font-head); font-size: .85rem; font-weight: 700;
  padding: 14px 18px; text-align: left;
  letter-spacing: .03em;
}
tbody tr { border-bottom: 1px solid var(--border); transition: background .15s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--blue-light); }
tbody td { padding: 12px 18px; font-size: .92rem; color: var(--text-2); }
tbody td:first-child { font-weight: 600; color: var(--text); }

/* ===== FEATURE CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  border: 1.5px solid var(--border);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79,110,247,.25);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
}
.feature-card h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: .88rem; color: var(--text-2); line-height: 1.55; }

/* ===== HOW IT WORKS STEPS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step-card {
  position: relative;
  background: white;
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1.5px solid var(--border);
  text-align: center;
  counter-increment: step;
}
.step-card::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: white;
  font-family: var(--font-head); font-weight: 800; font-size: .9rem;
  margin-bottom: 14px;
}
.step-card h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: .87rem; color: var(--text-2); }

/* ===== FAQ ===== */
.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  background: white;
}
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 18px 22px;
  font-family: var(--font-body); font-size: .97rem; font-weight: 600;
  color: var(--text); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  transition: background .15s;
}
.faq-q:hover { background: var(--blue-light); }
.faq-icon { font-size: 1.2rem; color: var(--blue); transition: transform .2s; flex-shrink: 0; }
.faq-q.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  padding: 0 22px;
  font-size: .9rem; color: var(--text-2); line-height: 1.65;
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s;
}
.faq-a.open { max-height: 300px; padding: 0 22px 18px; }

/* ===== HERO IMAGE STRIP ===== */
.image-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 50px;
}
.image-strip img {
  border-radius: var(--radius);
  width: 100%; height: 200px;
  object-fit: cover;
  filter: brightness(.97) saturate(1.05);
  box-shadow: var(--shadow);
}

/* ===== ABOUT / BLOG / STATIC PAGES ===== */
.page-hero {
  padding: 64px 0 48px;
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--violet-light) 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero h1 { font-family: var(--font-head); font-size: clamp(2rem,4vw,2.8rem); font-weight: 800; color: var(--dark); letter-spacing: -0.3px; margin-bottom: 12px; }
.page-hero p { color: var(--text-2); max-width: 520px; margin: 0 auto; font-size: 1.05rem; }

.prose {
  max-width: 780px; margin: 0 auto;
  font-size: 1rem; color: var(--text-2);
}
.prose h2 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--dark); margin: 36px 0 12px; letter-spacing: -0.2px; }
.prose h3 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--dark); margin: 24px 0 8px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 16px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose a { color: var(--blue); }

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-form { background: white; padding: 36px; border-radius: var(--radius-lg); border: 1.5px solid var(--border); box-shadow: var(--shadow); }
.contact-form h2 { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; margin-bottom: 22px; }
.contact-form .form-group { margin-bottom: 16px; }
.contact-form textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: .97rem; color: var(--text);
  resize: vertical; min-height: 120px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79,110,247,.12); }
.btn-primary {
  padding: 13px 28px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: white; border: none; cursor: pointer;
  border-radius: var(--radius); font-family: var(--font-head); font-size: .95rem; font-weight: 700;
  transition: opacity .2s, transform .15s;
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }

.contact-info h3 { font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; margin-bottom: 16px; }
.contact-info p { font-size: .92rem; color: var(--text-2); margin-bottom: 20px; }
.info-item {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 18px;
}
.info-item svg { color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.info-item div { font-size: .9rem; color: var(--text-2); }
.info-item div strong { color: var(--text); font-weight: 600; display: block; margin-bottom: 2px; }

.msg-success {
  display: none;
  background: rgba(16,185,129,.1);
  border: 1.5px solid var(--success);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: #065f46;
  font-size: .9rem; margin-top: 14px;
}
.msg-success.show { display: block; animation: fadeIn .3s; }

/* ===== BLOG CARDS ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.blog-card {
  background: white; border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.blog-card img { width: 100%; height: 180px; object-fit: cover; }
.blog-card-body { padding: 22px; }
.blog-tag {
  display: inline-block;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--blue); background: var(--blue-light);
  padding: 3px 10px; border-radius: 6px; margin-bottom: 10px;
}
.blog-card h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--dark); line-height: 1.35; }
.blog-card p { font-size: .86rem; color: var(--text-2); line-height: 1.55; margin-bottom: 14px; }
.read-more { font-size: .85rem; font-weight: 600; color: var(--blue); display: flex; align-items: center; gap: 5px; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding: 64px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo-text { color: white; }
.footer-brand .logo-text span { color: var(--blue); }
.footer-tagline { font-size: .87rem; margin-top: 12px; margin-bottom: 16px; line-height: 1.6; color: rgba(255,255,255,.55); }
.footer-email {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; color: rgba(255,255,255,.65);
  transition: color .2s;
}
.footer-email:hover { color: var(--blue); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h4 { font-family: var(--font-head); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: white; margin-bottom: 14px; }
.footer-col a { display: block; font-size: .87rem; color: rgba(255,255,255,.55); margin-bottom: 9px; transition: color .2s; }
.footer-col a:hover { color: rgba(255,255,255,.9); }
.footer-bottom {
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.4); margin-bottom: 4px; }
.footer-disclaimer { font-size: .75rem !important; }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: white; flex-direction: column; padding: 16px 24px; border-bottom: 1px solid var(--border); gap: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.06); }
  .main-nav.open { display: flex; }
  .hamburger { display: flex; }
  .calc-grid { grid-template-columns: 1fr; }
  .image-strip { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero { padding: 50px 0 40px; }
  .calc-card { padding: 24px 18px; }
  .footer-links { grid-template-columns: 1fr; }
  .calc-tabs { flex-wrap: wrap; }
  .header-inner { height: 60px; }
}
