:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0b1d33;
  --muted: #475569;
  --line: #e2e8f0;
  --accent: #0369a1;
  --accent-soft: #e0f2fe;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.shell { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.section { padding: 72px 0; scroll-margin-top: 72px; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.lead { color: var(--muted); font-size: 1.1rem; margin: 12px 0 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 252, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 20px; }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand-name { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand-tag { font-weight: 500; font-size: 1.02rem; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); white-space: nowrap; }
.nav-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta { background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 999px; font-weight: 600; }
.nav-links .nav-cta:hover { background: var(--accent); color: #fff; }
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.lang-switch a { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; padding: 5px 10px; border-radius: 999px; color: var(--muted); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.is-active { background: var(--accent-soft); color: var(--accent); }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 800; }
.hero .lead { font-size: 1.15rem; margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(3, 105, 161, 0.25); }
.btn-secondary { background: var(--surface); border-color: var(--line); color: var(--ink); }
.hero-photo { position: relative; justify-self: center; width: min(360px, 100%); }
.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: var(--shadow);
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 44px;
  background: linear-gradient(135deg, var(--accent-soft), transparent 60%);
  z-index: -1;
}
.trust { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.trust strong { color: var(--ink); font-weight: 600; }

/* Cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  margin: 0;
}
.section-alt .card { background: var(--bg); }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0 0 14px; }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.card li { margin: 4px 0; }
.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

/* Steps */
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 18px;
}
.step p { margin-bottom: 0; }

/* Projects */
.projects { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.project { padding: 0; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.project:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.project-media { aspect-ratio: 4 / 3; background: #eef2f7; overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.project-body { padding: 18px 20px 22px; }
.project-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.project-body p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.project-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.more-link { display: inline-block; margin-top: 24px; font-weight: 600; color: var(--accent); text-decoration: none; }
.more-link:hover { text-decoration: underline; }

/* Quotes */
.quotes { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.quote p { color: var(--ink); margin: 0 0 16px; font-size: 1rem; }
.quote footer { color: var(--muted); font-size: 0.9rem; }
.quote footer strong { display: block; color: var(--ink); }
.source-note { margin-top: 18px; color: var(--muted); font-size: 0.9rem; }
.source-note a { color: var(--accent); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.about-grid .section-head { margin-bottom: 0; }
.about p { color: var(--muted); margin: 0 0 16px; }
.link-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.link-list a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.link-list a:hover { border-color: var(--accent); color: var(--accent); }

/* Blog list */
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; text-decoration: none; }
.post-list a:hover span { color: var(--accent); }
.post-list span { font-weight: 600; }
.post-list time { color: var(--muted); white-space: nowrap; font-size: 0.9rem; }

/* Contact */
.cta { background: var(--ink); color: #fff; border-radius: 28px; padding: 56px 40px; text-align: center; }
.cta h2 { color: #fff; max-width: 640px; margin: 0 auto; }
.cta p { color: #cbd5e1; max-width: 560px; margin: 14px auto 0; }
.cta-actions { justify-content: center; }
.cta .btn-primary { background: #fff; color: var(--ink); box-shadow: none; }
.cta .btn-secondary { background: transparent; border-color: rgba(255, 255, 255, 0.3); color: #fff; }

/* Footer */
.site-footer { padding: 36px 0 48px; color: var(--muted); font-size: 0.9rem; }
.site-footer .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Savings */
.savings-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.savings-grid .section-head { margin-bottom: 28px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.stat strong { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; }
.stat span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.9rem; line-height: 1.35; }
.stat-hl { background: var(--accent); border-color: var(--accent); color: #fff; }
.stat-hl span { color: var(--accent-soft); }
.savings-note { margin: 20px 0 0; color: var(--muted); }
.savings-note strong { color: var(--ink); }
.section-alt .calc { background: var(--surface); box-shadow: var(--shadow); }
.calc h3 { margin-bottom: 20px; }
.calc-field { display: block; margin-bottom: 16px; }
.calc-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.95rem; font-weight: 500; }
.calc-row output { font-weight: 700; color: var(--accent); white-space: nowrap; }
.calc input[type="range"] { width: 100%; margin: 8px 0 0; accent-color: var(--accent); }
.calc-result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; padding: 18px 0 14px; border-top: 1px solid var(--line); }
.calc-result strong { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.calc-result span { color: var(--muted); font-size: 0.82rem; }
.calc .calc-foot { font-size: 0.82rem; margin-bottom: 18px; }
.calc .btn { width: 100%; justify-content: center; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { order: -1; width: min(240px, 70%); margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .savings-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .nav-links li.hide-mobile { display: none; }
  .section { padding: 56px 0; }
  .cta { padding: 40px 24px; }
}
@media (max-width: 560px) {
  .post-list a { flex-direction: column; gap: 4px; }
}

@media (max-width: 560px) {
  .brand { gap: 10px; }
  .brand-tag { font-size: 0.92rem; padding-left: 10px; }
  .nav-links { gap: 12px; }
  .nav-links .nav-cta { padding: 8px 13px; }
  .lang-switch a { padding: 4px 8px; }
}

@media (max-width: 479px) {
  .brand-tag { display: none; }
}

@media (max-width: 400px) {
  .brand-name { font-size: 1rem; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 0.9rem; }
  .nav-links .nav-cta { padding: 7px 12px; }
}

@media (max-width: 340px) {
  .nav-links li.hide-tiny { display: none; }
}

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; gap: 8px; }
  .stat { display: flex; align-items: baseline; gap: 12px; padding: 12px 16px; }
  .stat strong { font-size: 1.4rem; min-width: 5.2em; }
  .stat span { margin-top: 0; }
  .calc { padding: 22px; }
  .calc-result { grid-template-columns: 1fr; gap: 6px; }
  .calc-result div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .calc-result strong { font-size: 1.2rem; order: 2; }
}
