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

:root {
  --ink: #172033;
  --muted: #5f6b7a;
  --line: #dfe5ec;
  --soft: #f4f7fa;
  --brand: #2f5fe3;
  --brand-dark: #1f45b7;
  --accent: #6d48e5;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(20, 37, 63, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(223, 229, 236, 0.9);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--white);
  background: linear-gradient(135deg, var(--brand), var(--accent));
  font-size: 0.78rem;
  letter-spacing: -0.04em;
  box-shadow: 0 10px 24px rgba(47, 95, 227, 0.24);
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--brand);
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--soft);
}

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(109, 72, 229, 0.16), transparent 34%),
    radial-gradient(circle at 10% 20%, rgba(47, 95, 227, 0.13), transparent 28%),
    linear-gradient(180deg, #fbfcff 0%, #f5f8fc 100%);
}

.hero-grid {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  align-items: center;
  padding: 84px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-weight: 800;
  font-size: 0.79rem;
  letter-spacing: 0.14em;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 730px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.15rem;
}

.lead.small {
  max-width: 610px;
  font-size: 1.06rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 13px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 14px 28px rgba(47, 95, 227, 0.22);
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--white);
}

.button.white {
  color: var(--brand-dark);
  background: var(--white);
}

.hero-card {
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.mini-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.mini-card:last-child {
  border-bottom: 0;
}

.mini-card strong {
  display: block;
  margin-bottom: 4px;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(47, 95, 227, 0.12), rgba(109, 72, 229, 0.16));
  color: var(--brand);
  font-size: 1.3rem;
  font-weight: 800;
}

.section {
  padding: 100px 0;
}

.section.soft {
  background: var(--soft);
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 42px;
}

.project-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(28, 44, 69, 0.07);
}

.project-card p {
  min-height: 78px;
  color: var(--muted);
}

.project-card a {
  display: inline-flex;
  gap: 8px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 800;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.project-badge {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.project-logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
}

.project-logo.swap {
  background: linear-gradient(135deg, #2867f0, #7255e7);
}

.project-logo.fungi {
  background: linear-gradient(135deg, #438044, #94ad4c);
}

.company-grid {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 70px;
  align-items: start;
}

.company-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(28, 44, 69, 0.06);
  font-style: normal;
}

.company-card a {
  margin-top: 10px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.contact-section {
  padding: 34px 0;
  background: linear-gradient(135deg, var(--brand-dark), var(--accent));
}

.contact-box {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--white);
}

.contact-box h2 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.eyebrow.light {
  color: rgba(255,255,255,0.75);
}

footer {
  padding: 28px 0;
  color: var(--muted);
  background: #101727;
  font-size: 0.9rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255,255,255,0.65);
}

@media (max-width: 860px) {
  nav a:not(.nav-cta) {
    display: none;
  }

  .hero-grid,
  .company-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    gap: 40px;
    padding: 70px 0;
  }

  .projects {
    grid-template-columns: 1fr;
  }

  .project-card p {
    min-height: auto;
  }

  .contact-box,
  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .site-header .nav {
    min-height: 66px;
  }

  .hero-grid {
    padding: 56px 0;
  }

  h1 {
    font-size: 2.75rem;
  }

  .section {
    padding: 76px 0;
  }

  .project-card {
    padding: 26px;
  }

  .hero-actions .button,
  .contact-box .button {
    width: 100%;
  }
}
