:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --border: rgba(0, 0, 0, 0.08);
  --card-bg: #ffffff;
  --philosophy-bg: #1d1d1f;
  --philosophy-text: #f5f5f7;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "Segoe UI", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

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

section {
  scroll-margin-top: 60px;
}

/* Progress bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 2000;
  transition: width 0.1s linear;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-right {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.lang-switch {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 980px;
  border: 1px solid var(--border);
  color: var(--text);
  margin-left: 24px;
  transition: background 0.2s ease;
}

.lang-switch:hover {
  background: var(--bg-alt);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 20px;
  height: 1.5px;
  background: var(--text);
  display: block;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  color: var(--accent);
}

.btn-secondary:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -20% -20% auto -20%;
  height: 140%;
  background: var(--bg);
  z-index: -1;
}

.hero-content {
  max-width: 700px;
}

.hero-image {
  width: clamp(220px, 34vw, 420px);
  height: clamp(220px, 34vw, 420px);
  object-fit: cover;
  border-radius: 32px;
  display: block;
  margin: 0 auto 32px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.eyebrow-invert {
  color: #2997ff;
}

.hero h1 {
  font-size: clamp(44px, 8vw, 80px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 560px;
  margin: 0 auto 28px;
}

.tagline-pill {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 980px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-cue span {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--text-secondary), transparent);
  animation: scrollcue 1.8s ease-in-out infinite;
}

@keyframes scrollcue {
  0% { opacity: 0; transform: translateY(-8px); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateY(8px); }
}

/* Sections */
.section {
  padding: 120px 24px;
}

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

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  max-width: 640px;
}

.about-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 48px;
}

.about-text {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.6;
}

.about-text strong {
  color: var(--text);
  font-weight: 600;
}

.strengths {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
}

.strengths li {
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 980px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

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

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 24px;
}

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

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-badge {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.card h3 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.card-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.process {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  counter-reset: step;
  margin-bottom: 28px;
}

.process li {
  counter-increment: step;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px 8px 10px;
  border-radius: 980px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

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

.process li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  margin-right: 6px;
}

.modules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-bottom: 28px;
}

.modules li {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 980px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

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

.card-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.card-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

.card-links a:hover {
  text-decoration: underline;
}

.projects-note {
  margin-top: 48px;
  font-size: 15px;
  color: var(--text-secondary);
  text-align: center;
}

/* Philosophy */
.philosophy {
  background: var(--philosophy-bg);
  color: var(--philosophy-text);
  padding: 140px 24px;
  text-align: center;
}

.philosophy-inner {
  max-width: 640px;
  margin: 0 auto;
}

.philosophy h2 {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 28px;
}

.philosophy-text {
  font-size: clamp(17px, 2vw, 20px);
  opacity: 0.75;
  line-height: 1.6;
}

/* Contact */
.contact-inner {
  text-align: center;
}

.contact-inner h2 {
  margin-left: auto;
  margin-right: auto;
}

.contact-inner .about-text {
  margin: 0 auto 32px;
}

/* Footer */
.footer {
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.open {
    max-height: 260px;
  }

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

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 80px 24px;
  }

  .philosophy {
    padding: 100px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
