@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --purple: #2d1b69;
  --purple-light: #4a2f9e;
  --orange: #ff6b2c;
  --orange-soft: #ff8f5c;
  --lavender: #f0ecfa;
  --white: #ffffff;
  --ink: #1a1430;
  --muted: #6b6580;
  --mono: 'Space Grotesk', monospace;
  --sans: 'DM Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
}

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

a { color: var(--purple-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange); }

header {
  background: var(--purple);
  color: var(--white);
  padding: 0.85rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-flex {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
}

.brand img { width: 42px; height: 42px; }
.brand strong { display: block; font-size: 0.95rem; font-family: var(--mono); }
.brand span { font-size: 0.68rem; opacity: 0.75; }

.menu-btn {
  display: none;
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
}

.main-nav { display: flex; gap: 0.25rem; align-items: center; }

.main-nav a {
  color: rgba(255,255,255,0.82);
  padding: 0.5rem 0.95rem;
  font-size: 0.86rem;
  font-weight: 500;
  border-radius: 6px;
}

.main-nav a:hover,
.main-nav a.active { background: rgba(255,107,44,0.25); color: var(--white); }

.nav-email {
  background: var(--orange) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
}

.contact-bar {
  background: var(--lavender);
  padding: 0.45rem 1.5rem;
  font-size: 0.78rem;
  text-align: center;
  color: var(--muted);
}

.contact-bar a { font-weight: 700; color: var(--purple); }

.hero {
  background: linear-gradient(135deg, var(--purple) 0%, #1a0f3d 100%);
  color: var(--white);
  padding: 4rem 1.5rem;
}

.hero-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero .code {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--orange-soft);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--mono);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

.hero p { opacity: 0.9; margin-bottom: 1rem; max-width: 28rem; }

.hero-mail { font-weight: 700; margin-bottom: 1.75rem !important; }
.hero-mail a { color: var(--orange); }

.hero-btns { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  padding: 0.85rem 1.45rem;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 8px;
  border: 2px solid transparent;
}

.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange-soft); }

.btn-ghost { border-color: rgba(255,255,255,0.45); color: var(--white); }

.hero-img img { border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,0.4); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1140px;
  margin: -2rem auto 0;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.stat {
  background: var(--white);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 12px 40px rgba(45, 27, 105, 0.12);
  border: 1px solid rgba(45, 27, 105, 0.06);
}

.stat strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.35rem;
  color: var(--purple);
}

.stat span { font-size: 0.78rem; color: var(--muted); }

section { padding: 4.5rem 1.5rem; }

.container { max-width: 1140px; margin: 0 auto; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

h2.section-title {
  font-family: var(--mono);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  color: var(--purple);
  margin-bottom: 1rem;
}

.section-lead { color: var(--muted); max-width: 580px; margin-bottom: 2rem; }

.bg-lavender { background: var(--lavender); }

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.bento-item {
  background: var(--white);
  border-radius: 10px;
  padding: 1.65rem;
  border: 1px solid rgba(45, 27, 105, 0.08);
  transition: transform 0.2s;
}

.bento-item:hover { transform: translateY(-3px); }

.bento-item .icon {
  font-family: var(--mono);
  color: var(--orange);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.bento-item h3 {
  font-family: var(--mono);
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
  color: var(--purple);
}

.bento-item p { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.65rem; }

.item-mail { font-size: 0.82rem; font-weight: 700; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.split img { border-radius: 12px; }

ul.dots { list-style: none; margin-top: 1rem; }
ul.dots li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(45, 27, 105, 0.08);
  font-size: 0.92rem;
}
ul.dots li::before { content: '{ }'; font-family: var(--mono); color: var(--orange); margin-right: 0.5rem; font-size: 0.75rem; }

.bg-purple {
  background: var(--purple);
  color: var(--white);
}

.bg-purple a { color: var(--orange); }
.bg-purple h2.section-title { color: var(--white); }
.bg-purple .section-lead { color: rgba(255,255,255,0.78); }

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2rem;
}

.contact-block p { margin-bottom: 0.75rem; }
.contact-block .big-mail { font-size: 1.1rem; font-weight: 700; margin: 1rem 0; }

form { display: grid; gap: 1rem; }

label { font-size: 0.78rem; font-weight: 700; margin-bottom: 0.3rem; display: block; color: var(--purple); }

input, textarea, select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid rgba(45, 27, 105, 0.12);
  border-radius: 8px;
  font-family: inherit;
}

input:focus, textarea:focus, select:focus { outline: none; border-color: var(--orange); }

textarea { min-height: 120px; resize: vertical; }

.note { font-size: 0.82rem; color: var(--muted); }

.page-head {
  background: var(--purple);
  color: var(--white);
  padding: 4.5rem 1.5rem 2.5rem;
  text-align: center;
}

.page-head h1 {
  font-family: var(--mono);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom: 0.75rem;
}

.page-head p { opacity: 0.88; max-width: 520px; margin: 0 auto 0.65rem; }

.prose { max-width: 700px; margin: 0 auto; padding: 3rem 1.5rem; }
.prose h2 { font-family: var(--mono); color: var(--purple); font-size: 1.45rem; margin: 1.75rem 0 0.65rem; }
.prose p { margin-bottom: 1rem; color: var(--muted); }

footer {
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  padding: 2.25rem 1.5rem;
}

.foot-grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

footer h4 { color: var(--white); font-family: var(--mono); margin-bottom: 0.65rem; }

.foot-links a { display: block; color: rgba(255,255,255,0.65); padding: 0.2rem 0; font-size: 0.88rem; }
.foot-links a:hover { color: var(--orange); }

.foot-mail { color: var(--orange); font-weight: 700; word-break: break-all; }

.foot-bottom {
  max-width: 1140px;
  margin: 1.25rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

@media (max-width: 900px) {
  .hero-grid, .split, .contact-split, .foot-grid, .bento, .stats { grid-template-columns: 1fr; }
  .menu-btn { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 1.5rem;
    flex-direction: column;
    background: var(--purple-light);
    padding: 0.5rem;
    border-radius: 8px;
  }
  .main-nav.open { display: flex; }
  header { position: relative; }
}
