:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --ink: #0e1726;
  --ink-soft: #46536a;
  --line: #e4e9f0;
  --accent: #f5b301;
  --accent-ink: #8a6400;
  --navy: #0e1726;
  --radius: 16px;
  --container: 1120px;
  --shadow: 0 10px 30px rgba(14, 23, 38, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--navy);
}

/* Fixed height keeps the sticky header from growing; width follows the
   image's aspect ratio via the width/height attributes on the tag. */
.logo-mark { height: 38px; width: auto; display: block; }

.logo-text b { font-weight: 800; }

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}

.site-nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.lang-switch button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}

.lang-switch button.active {
  background: var(--navy);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0 9px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fdfaf2 0%, #ffffff 100%);
  color: var(--ink);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 110px;
  padding-bottom: 120px;
  max-width: 820px;
}

.hero-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 36px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--accent); color: #201700; }

.btn-ghost {
  border: 1px solid #cdd5e0;
  color: var(--ink);
  background: #fff;
}

.btn-ghost:hover { border-color: var(--ink-soft); }

.hero-glow {
  position: absolute;
  right: -180px;
  top: -120px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 179, 1, 0.16), transparent 65%);
  pointer-events: none;
}

/* ---------- Sections ---------- */

.section { padding: 96px 0; }

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

.section-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}

.about-lead {
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.about-facts { display: grid; gap: 18px; }

.fact {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.fact-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  min-width: 44px;
  text-align: center;
}

.fact-label { font-size: 15px; color: var(--ink-soft); font-weight: 500; }

/* ---------- Projects ---------- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}

.project-card:hover { transform: translateY(-4px); }

.project-card-next {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.project-logo.clean24 {
  background: #e8f6f2;
  color: #0c7a5f;
}

.project-logo.clean24 b { font-weight: 800; }

.project-logo.next {
  width: 52px;
  padding: 0;
  background: var(--bg-alt);
  color: var(--ink-soft);
  font-weight: 800;
}

.badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-dev { background: #fff3d6; color: #8a6400; }

.badge-soon { background: #e9edf3; color: var(--ink-soft); }

.project-name { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }

.project-desc { color: var(--ink-soft); font-size: 15.5px; flex-grow: 1; }

.project-meta { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
}

.project-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--accent-ink);
}

a.project-link:hover { text-decoration: underline; }

/* ---------- Approach ---------- */

.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.approach-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.approach-num {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-ink);
  margin-bottom: 14px;
}

.approach-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.approach-card p { font-size: 15px; color: var(--ink-soft); }

/* ---------- Contact ---------- */

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

.contact-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}

.contact-lead { color: var(--ink-soft); font-size: 18px; max-width: 460px; }

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  display: grid;
  gap: 20px;
}

.contact-row { display: grid; gap: 4px; font-size: 17px; }

.contact-row a { color: var(--accent-ink); font-weight: 600; }

.contact-row a:hover { text-decoration: underline; }

.contact-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8d99ad;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 26px 24px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .about-grid, .contact-inner { grid-template-columns: 1fr; gap: 32px; }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 16px 24px;
    border-top: 1px solid var(--line);
  }

  .nav-toggle { display: flex; }

  .hero-inner { padding-top: 72px; padding-bottom: 80px; }

  .section { padding: 64px 0; }
}
