/* ============================================================
   VNE Technologies — styles.css
   Vision · Navigation · Execution
   ============================================================ */

:root {
  /* Palette */
  --bg:        #0a0e1a;
  --bg-2:      #0c1120;
  --surface:   #121a2e;
  --surface-2: #16203a;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);

  --text:      #e8ecf6;
  --muted:     #9aa6c0;
  --faint:     #6b7691;

  --brand:     #5b8cff;
  --brand-2:   #22d3ee;
  --accent-grad: linear-gradient(120deg, #5b8cff 0%, #22d3ee 100%);

  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1160px;

  --shadow:    0 24px 60px -28px rgba(0, 0, 0, 0.7);
  --shadow-soft: 0 12px 40px -20px rgba(35, 211, 238, 0.25);

  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  letter-spacing: 0.1px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 14px;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.22rem; }

.grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-head { max-width: 680px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-lead { color: var(--muted); font-size: 1.08rem; margin-top: 16px; }

/* ---------- Decorative background ---------- */
.bg-aurora {
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 720px;
  background:
    radial-gradient(closest-side at 22% 30%, rgba(91, 140, 255, 0.30), transparent 70%),
    radial-gradient(closest-side at 78% 20%, rgba(34, 211, 238, 0.22), transparent 70%);
  filter: blur(20px);
  z-index: -2;
  pointer-events: none;
}
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  z-index: -2;
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent-grad);
  color: #06121f;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -16px rgba(34, 211, 238, 0.5); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--brand); transform: translateY(-2px); }

.btn-block { width: 100%; padding-block: 15px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 14, 26, 0.6);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background: rgba(10, 14, 26, 0.85);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: inline-flex; align-items: baseline; gap: 9px; font-family: var(--font-head); }
.brand-mark {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.brand-text { font-weight: 500; font-size: 0.95rem; color: var(--muted); letter-spacing: 0.02em; }

.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-menu a { font-size: 0.96rem; color: var(--muted); font-weight: 500; transition: color 0.2s ease; }
.nav-menu a:hover { color: var(--text); }
.nav-cta { color: #06121f !important; }
.nav-cta:hover { color: #06121f !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(70px, 12vw, 150px) 0 clamp(50px, 8vw, 90px); }
.hero-inner { max-width: 880px; }
.hero-title {
  font-size: clamp(2.3rem, 6vw, 4rem);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 660px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-vne {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 56px;
}
.hero-vne li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  flex: 1 1 180px;
}
.vne-letter {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(91, 140, 255, 0.12);
  border: 1px solid var(--line-2);
  background-clip: padding-box;
  color: var(--brand-2);
}
.vne-word { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }

/* ---------- Cards (philosophy) ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.philo-card {
  position: relative;
  padding: 34px 30px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.philo-card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--accent-grad);
  opacity: 0.7;
}
.philo-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.philo-letter {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 1;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  display: block;
  margin-bottom: 14px;
}
.philo-card h3 { margin-bottom: 10px; }
.philo-card p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Services ---------- */
.services { background: linear-gradient(180deg, transparent, rgba(18, 26, 46, 0.4) 30%, transparent); }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  background: var(--surface-2);
}
.service-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(91, 140, 255, 0.10);
  border: 1px solid var(--line-2);
  color: var(--brand-2);
  margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Approach ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), transparent);
  position: relative;
}
.step-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--brand-2);
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Why VNE ---------- */
.why-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.why-item {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.why-item:hover { border-color: var(--line-2); transform: translateY(-3px); }
.why-item h3 { font-size: 1.08rem; margin-bottom: 8px; }
.why-item p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, transparent, rgba(18, 26, 46, 0.45)); }
.contact-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}
.contact-details { margin-top: 30px; display: grid; gap: 18px; }
.contact-details li { display: flex; flex-direction: column; gap: 2px; }
.contact-label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.contact-details a { font-size: 1.08rem; color: var(--text); transition: color 0.2s ease; width: fit-content; }
.contact-details a:hover { color: var(--brand-2); }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: clamp(26px, 4vw, 38px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.18);
}
.field select { appearance: none; cursor: pointer; }
.form-note { margin-top: 12px; font-size: 0.92rem; color: var(--brand-2); min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-top: 56px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 32px;
}
.footer-tag {
  font-family: var(--font-head);
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin-top: 8px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { padding: 22px 24px; border-top: 1px solid var(--line); }
.footer-bottom p { color: var(--faint); font-size: 0.88rem; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .cards-3, .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why-inner, .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 18px 24px 26px;
    background: rgba(10, 14, 26, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    pointer-events: none;
    transition: clip-path 0.32s ease, opacity 0.32s ease;
  }
  .nav-menu.open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .nav-menu a { padding: 10px 4px; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .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); }
}

@media (max-width: 560px) {
  .cards-3, .cards-grid, .steps, .why-list, .contact-form { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .hero-vne li { flex: 1 1 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
