/* OptiFlow Solutions — palette drawn from the logo mark */
:root {
  --bg: #0b1218;
  --bg-alt: #0f1a22;
  --surface: #13212c;
  --line: #1e3240;
  --text: #e8eef2;
  --text-dim: #9db0bc;
  --cyan: #2bb8e8;
  --cyan-deep: #1e7fc2;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name {
  font-family: "Space Grotesk", "Inter", sans-serif;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

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

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 24, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { width: 34px; height: auto; }
.brand-name { font-size: 1.12rem; font-weight: 700; }
.brand-name span { color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-deep));
  color: #06131b !important;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  border: 0;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(43, 184, 232, 0.35); }
.btn-ghost {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--cyan); box-shadow: none; }
.btn-small { padding: 9px 20px; font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(30, 127, 194, 0.18), transparent),
    radial-gradient(ellipse 50% 40% at 15% 85%, rgba(43, 184, 232, 0.08), transparent);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
  padding-top: 88px;
  padding-bottom: 96px;
}
.eyebrow {
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); font-weight: 700; margin-bottom: 20px; }
.accent {
  background: linear-gradient(120deg, var(--cyan), #7fd6f5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.lead { color: var(--text-dim); font-size: 1.12rem; max-width: 56ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-art { text-align: center; }
.hero-art img {
  width: min(320px, 70vw);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 700; margin-bottom: 36px; }

/* Services cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .18s, border-color .18s;
}
.card:hover { transform: translateY(-4px); border-color: var(--cyan-deep); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(43, 184, 232, 0.12);
  color: var(--cyan);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 18px;
  font-family: "Space Grotesk", monospace;
}
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.98rem; }

/* Track record */
.record { list-style: none; display: grid; gap: 18px; max-width: 760px; }
.record li {
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: 10px;
  color: var(--text-dim);
}
.record strong { color: var(--text); display: block; margin-bottom: 4px; font-weight: 600; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.about-grid h2 { margin-bottom: 0; }
.about-copy p { color: var(--text-dim); margin-bottom: 16px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-form { display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 8px; font-weight: 500; font-size: 0.95rem; }
.contact-form input,
.contact-form textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font: inherit;
  transition: border-color .15s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--cyan); }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #5a707e; }
.contact-form .btn { justify-self: start; }
.form-note { color: var(--text-dim); font-size: 0.85rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer p { color: var(--text-dim); font-size: 0.9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; }
  .hero-art { order: -1; }
  .hero-art img { width: min(220px, 55vw); }
  .cards { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 64px 0; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; }
  .nav-links .btn { margin-top: 8px; width: auto; }
}
