@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@600;700&display=swap");

:root {
  --background: #0A121F;
  --foreground: #F5F5F5;
  --card: #0F1A2E;
  --muted: #0F1A2E;
  --muted-foreground: #8B9CB6;
  --border: #1E2D43;
  --primary: #1D6FE2;
  --primary-hover: #2B7FED;
  --secondary: #0E8C82;
  --secondary-soft: rgba(14, 140, 130, 0.13);
  --primary-soft: rgba(29, 111, 226, 0.1);
  --radius: 12px;
  --button-radius: 8px;
  --container: 1180px;
}

[data-theme="light"] {
  --background: #FFFFFF;
  --foreground: #0B1F3B;
  --card: #F6F9FC;
  --muted: #EEF4FA;
  --muted-foreground: #52647B;
  --border: #D9E2EE;
  --primary: #1D6FE2;
  --primary-hover: #175FC4;
  --secondary: #0E8C82;
  --secondary-soft: rgba(14, 140, 130, 0.11);
  --primary-soft: rgba(29, 111, 226, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--background) 95%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.nav-wrap,
.section,
.page-hero,
.hero,
.footer-wrap {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.nav-wrap {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  color: var(--foreground);
}

.brand img {
  width: 36px;
  height: 36px;
}

.wordmark {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.08rem;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.wordmark span {
  color: var(--primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.main-nav a {
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover {
  color: var(--foreground);
  background: var(--muted);
}

.main-nav a.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle,
.menu-toggle {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover,
.menu-toggle:hover {
  color: var(--foreground);
  background: var(--muted);
}

.menu-toggle {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

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

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

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}

.btn-secondary:hover {
  background: var(--muted);
}

main {
  overflow: hidden;
}

.hero {
  padding: 96px 0 132px;
  border-bottom: 1px solid var(--border);
}

.hero > div:first-child {
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 28px;
  font-size: clamp(2.8rem, 7vw, 3.75rem);
  line-height: 1;
}

.page-title {
  max-width: 980px;
  font-size: clamp(2.55rem, 6vw, 3.75rem);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 2.45rem);
  line-height: 1.1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.lead {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted-foreground);
  font-size: clamp(1.12rem, 2vw, 1.5rem);
  line-height: 1.4;
}

.hero .lead {
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 0;
}

.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.section.narrow {
  max-width: min(860px, calc(100% - 32px));
}

.section-header {
  max-width: 760px;
  margin-bottom: 40px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.muted {
  color: var(--muted-foreground);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.form-card,
.notice-box,
.founder-strip,
.cta-band,
.service-chip,
.teaser-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.card,
.form-card,
.notice-box {
  padding: 28px;
}

.card p,
.service-card .intro,
.check-list li,
.helper {
  color: var(--muted-foreground);
}

.card p {
  margin-bottom: 0;
}

.card-number {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
}

.service-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 780px;
  margin: 0 auto;
}

.service-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 20px;
  color: var(--foreground);
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.service-chip::after,
.teaser-item span {
  content: "→";
  color: var(--primary);
  font-weight: 800;
}

.service-chip::before {
  content: "";
  width: 0;
  height: 0;
}

.service-chip:hover,
.teaser-item:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  background: color-mix(in srgb, var(--card) 88%, var(--primary));
}

.founder-strip,
.cta-band {
  padding: 34px;
}

.founder-strip {
  max-width: 620px;
}

.founder-strip strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.5rem;
  color: var(--foreground);
}

.founder-strip p,
.cta-band p {
  margin-bottom: 0;
}

.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.page-hero {
  padding: 96px 0 56px;
  border-bottom: 1px solid var(--border);
}

.service-card {
  scroll-margin-top: 92px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.check-list li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
}

.teaser-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.teaser-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 20px;
  font-weight: 600;
}

.text-link,
.email-link {
  color: var(--primary);
  font-weight: 700;
}

.text-link:hover,
.email-link:hover {
  text-decoration: underline;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 40px;
  align-items: start;
}

.sticky-note {
  position: sticky;
  top: 96px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field label {
  color: var(--foreground);
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  color: var(--foreground);
  padding: 12px 14px;
  font: inherit;
  outline: none;
}

.hidden-field {
  display: none;
}

.field input[type="file"] {
  padding: 12px;
}

.resume-upload-field {
  margin-top: 18px;
  margin-bottom: 0;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.helper {
  font-size: 0.9rem;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-grid label {
  position: relative;
}

.tag-grid input {
  position: absolute;
  opacity: 0;
}

.tag-grid span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tag-grid input:checked + span {
  background: var(--primary-soft);
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
  color: var(--foreground);
}

.other-skill-field {
  margin-top: -2px;
}

.other-skill-field textarea {
  min-height: 98px;
}

.notice-box {
  border-color: color-mix(in srgb, var(--secondary) 45%, var(--border));
}

.notice-box h3 {
  color: var(--secondary);
}

.notice-box p:last-child {
  margin-bottom: 0;
}

.form-status {
  min-height: 24px;
  margin-top: 14px;
  color: var(--secondary);
  font-weight: 700;
}

.site-footer {
  background: var(--card);
}

.footer-wrap {
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.9fr;
  gap: 36px;
}

.footer-grid h3 {
  margin-bottom: 14px;
  color: var(--foreground);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-brand p {
  max-width: 360px;
  color: var(--muted-foreground);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--muted-foreground);
}

.footer-links a:hover {
  color: var(--foreground);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.88rem;
}

@media (max-width: 960px) {
  .nav-wrap {
    min-height: 64px;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .main-nav {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-left: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    padding: 10px;
  }

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

  .main-nav a {
    padding: 12px 14px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .service-row,
  .teaser-list,
  .split,
  .cta-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sticky-note {
    position: static;
  }

  .cta-band {
    align-items: start;
  }
}

@media (max-width: 640px) {
  .nav-wrap,
  .section,
  .page-hero,
  .hero,
  .footer-wrap {
    width: min(100% - 28px, var(--container));
  }

  .wordmark {
    display: none;
  }

  .nav-actions .btn {
    display: none;
  }

  .hero {
    padding: 72px 0 90px;
  }

  .section {
    padding: 62px 0;
  }

  .page-hero {
    padding: 72px 0 44px;
  }

  .card,
  .form-card,
  .notice-box,
  .founder-strip,
  .cta-band {
    padding: 22px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
