/* ===== CUSTOM PROPERTIES ===== */
:root {
  --bg:        #0f1117;
  --bg-alt:    #161b27;
  --surface:   #1c2233;
  --accent:    #f97316;
  --accent-dk: #ea6c10;
  --text:      #e2e8f0;
  --text-muted:#94a3b8;
  --border:    #2d3748;
  --radius:    0.75rem;
  --shadow:    0 4px 24px rgba(0,0,0,.4);
  --nav-h:     64px;
  --font:      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== UTILITIES ===== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(15,17,23,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .05em;
  color: var(--text);
}
.nav__logo span { color: var(--accent); }

.nav__menu {
  display: flex;
  gap: 2rem;
}
.nav__menu a {
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color .2s;
}
.nav__menu a:hover { color: var(--accent); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(249,115,22,.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(249,115,22,.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  padding: 7rem 1.25rem 5rem;
  max-width: 720px;
}
.hero__eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 1.25rem;
  color: #fff;
}
.hero h1 span { color: var(--accent); }
.hero__sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
}

/* ===== BUTTON ===== */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  padding: .85rem 2.2rem;
  border-radius: var(--radius);
  transition: background .2s, transform .15s;
}
.btn:hover { background: var(--accent-dk); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* ===== SECTIONS ===== */
.section { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); }

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  text-align: center;
  margin-bottom: .75rem;
  color: #fff;
}
.section__title span { color: var(--accent); }
.section__sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 3rem;
}

/* ===== CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card__icon {
  width: 48px;
  height: 48px;
  background: rgba(249,115,22,.15);
  border-radius: .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .6rem;
  color: #fff;
}
.card p { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

/* ===== REFERENCES ===== */
.refs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.ref-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  transition: border-color .2s;
}
.ref-badge:hover { border-color: var(--accent); }
.ref-badge__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(249,115,22,.15);
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.ref-badge__icon svg { width: 20px; height: 20px; }
.ref-badge strong {
  display: block;
  font-size: .95rem;
  color: #fff;
  font-weight: 700;
}
.ref-badge span {
  font-size: .8rem;
  color: var(--text-muted);
}
.refs__more {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== CONTACT ===== */
.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}
.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.contact__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(249,115,22,.15);
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.contact__icon svg { width: 22px; height: 22px; }
.contact__item strong {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .25rem;
}
.contact__item a,
.contact__item span { font-size: 1rem; color: #fff; }
.contact__item a:hover { color: var(--accent); }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer p { font-size: .85rem; color: var(--text-muted); }
.footer__top {
  font-size: 1.25rem;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: border-color .2s, color .2s;
}
.footer__top:hover { border-color: var(--accent); color: var(--accent); }

/* ===== MOBILE ===== */
@media (max-width: 640px) {
  .nav__toggle { display: flex; }

  .nav__menu {
    display: none;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: .5rem 0;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a {
    display: block;
    padding: .85rem 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .nav__menu a:last-child { border-bottom: none; }

  .hero__inner { padding: 6rem 1.25rem 4rem; }

  .footer__inner { justify-content: center; text-align: center; }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
