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

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── Variables ─── */
:root {
  --bg:           #0a0f1e;
  --surface:      #111827;
  --border:       #1e293b;
  --accent-blue:  #3b82f6;
  --accent-cyan:  #06b6d4;
  --text-primary: #f1f5f9;
  --text-sec:     #94a3b8;
  --cta-grad:     linear-gradient(135deg, #2563eb, #06b6d4);
  --font-head:    'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --nav-h:        64px;
  --max-w:        1100px;
  --radius:       8px;
  --section-pad:  5rem 1.25rem;
}

/* ─── Base ─── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 1rem;
}

/* ─── Typography ─── */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { color: var(--text-sec); line-height: 1.75; }

/* ─── Layout ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: var(--section-pad); }
.section--dark { background: var(--surface); }

.section__header { text-align: center; margin-bottom: 3rem; }
.section__header p { margin-top: 0.75rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ─── Gradient text ─── */
.grad-text {
  background: var(--cta-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Divider ─── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  border: none;
  margin: 0;
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn--primary {
  background: var(--cta-grad);
  color: #fff;
}
.btn--outline {
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
}
.btn--outline:hover { background: rgba(59,130,246,0.08); }

/* ─── Nav ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  white-space: nowrap;
}
.nav__logo span { color: var(--accent-cyan); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-sec);
  transition: color 0.2s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--accent-blue); }
.nav__links a.nav__cta {
  background: var(--cta-grad);
  color: #fff;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
}
.nav__links a.nav__cta:hover { opacity: 0.85; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav__hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ─── */
.hero {
  padding: 6rem 1.25rem 5rem;
  text-align: center;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(59,130,246,0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  position: relative;
}
.hero .container { position: relative; z-index: 1; }
.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero p {
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto 2.25rem;
}
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── Cards ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 0 20px rgba(59,130,246,0.12);
}
.card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.95rem; }

/* ─── Grid layouts ─── */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

/* ─── CTA Strip ─── */
.cta-strip {
  padding: 4.5rem 1.25rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(6,182,212,0.08));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-strip h2 { margin-bottom: 0.75rem; }
.cta-strip p  { margin-bottom: 1.75rem; }

/* ─── Service blocks (services page) ─── */
.service-block {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.service-block:last-child { border-bottom: none; }
.service-block__icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 3rem;
  text-align: center;
  margin-top: 0.25rem;
}
.service-block h3 { margin-bottom: 0.5rem; }

/* ─── Product cards ─── */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.product-card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 0 24px rgba(59,130,246,0.12);
}
.product-card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  width: fit-content;
}
.product-card h3 { font-size: 1.4rem; margin: 0; }
.product-card p { flex-grow: 1; }
.product-card .btn { align-self: flex-start; margin-top: 0.5rem; }

/* ─── About blocks ─── */
.about-block { padding: 2rem 0; border-bottom: 1px solid var(--border); }
.about-block:last-child { border-bottom: none; }
.about-block h3 { color: var(--accent-blue); margin-bottom: 0.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-body); font-weight: 500; }
.about-block p { color: var(--text-primary); font-size: 1.05rem; }

/* ─── Contact ─── */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item__icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 0.1rem; }
.contact-item__label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-cyan); font-weight: 600; margin-bottom: 0.2rem; }
.contact-item__value { color: var(--text-primary); }
.contact-item__value a { color: var(--accent-blue); }
.contact-item__value a:hover { text-decoration: underline; }
.contact-item__placeholder { color: var(--text-sec); font-style: italic; }

.form-placeholder {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-sec);
  background: rgba(30,41,59,0.3);
}
.form-placeholder p { margin-top: 0.5rem; font-size: 0.9rem; }

/* ─── Footer ─── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.25rem;
  text-align: center;
}
.footer__inner { max-width: var(--max-w); margin: 0 auto; }
.footer__brand { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--text-primary); margin-bottom: 0.4rem; }
.footer__info { font-size: 0.875rem; color: var(--text-sec); margin-bottom: 0.4rem; }
.footer__info a { color: var(--accent-blue); }
.footer__info a:hover { text-decoration: underline; }
.footer__copy { font-size: 0.8rem; color: var(--border); }

/* ─── Responsive: 768px ─── */
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.4fr; }
}

/* ─── Responsive: 1024px ─── */
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Mobile nav ─── */
@media (max-width: 767px) {
  .nav__hamburger { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    z-index: 99;
  }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a {
    display: block;
    padding: 0.75rem 1.25rem;
    width: 100%;
  }
  .nav__links a.nav__cta {
    margin: 0.5rem 1.25rem;
    width: calc(100% - 2.5rem);
    text-align: center;
  }
}
