/* =============================================================
   VELORICY — style.css
   Design system: Space Grotesk display / Inter body
   Palette: Deep navy #08091A | Electric blue #2D6CFF | Violet #8B5CF6 | Teal #06B6D4
   Spacing: 8px base scale
   ============================================================= */

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

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

img, svg {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

input, textarea, button, select {
  font: inherit;
}

/* ── VARIABLES ──────────────────────────────────────────────── */
:root {
  /* Colors */
  --bg-base:        #08091A;
  --bg-surface:     #0D0F24;
  --bg-card:        #111327;
  --bg-card-hover:  #161930;
  --border:         rgba(255, 255, 255, 0.08);
  --border-hover:   rgba(255, 255, 255, 0.16);

  --blue:           #2D6CFF;
  --blue-light:     #5B8FFF;
  --blue-glow:      rgba(45, 108, 255, 0.25);
  --violet:         #8B5CF6;
  --violet-light:   #A78BFA;
  --violet-glow:    rgba(139, 92, 246, 0.25);
  --teal:           #06B6D4;
  --teal-light:     #67E8F9;
  --teal-glow:      rgba(6, 182, 212, 0.25);

  --text-primary:   #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted:     rgba(255, 255, 255, 0.4);
  --text-badge:     rgba(255, 255, 255, 0.8);

  /* Typography */
  --font-display:   'Space Grotesk', sans-serif;
  --font-body:      'Inter', sans-serif;

  --text-xs:        0.75rem;    /* 12px */
  --text-sm:        0.875rem;   /* 14px */
  --text-base:      1rem;       /* 16px */
  --text-lg:        1.125rem;   /* 18px */
  --text-xl:        1.25rem;    /* 20px */
  --text-2xl:       1.5rem;     /* 24px */
  --text-3xl:       1.875rem;   /* 30px */
  --text-4xl:       2.25rem;    /* 36px */
  --text-5xl:       3rem;       /* 48px */
  --text-6xl:       3.75rem;    /* 60px */

  /* Spacing (8px scale) */
  --sp-1:  8px;
  --sp-2:  16px;
  --sp-3:  24px;
  --sp-4:  32px;
  --sp-5:  40px;
  --sp-6:  48px;
  --sp-8:  64px;
  --sp-10: 80px;
  --sp-12: 96px;
  --sp-16: 128px;

  /* Layout */
  --container-max: 1160px;
  --container-px:  24px;

  /* Radius */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  /* Transitions */
  --t-fast:   0.15s ease;
  --t-base:   0.25s ease;
  --t-slow:   0.35s ease;
}

/* ── BASE ───────────────────────────────────────────────────── */
html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── CONTAINER ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background var(--t-base), color var(--t-base), box-shadow var(--t-base), transform var(--t-fast), border-color var(--t-base);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 0 var(--blue-glow);
}
.btn-primary:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  box-shadow: 0 4px 24px var(--blue-glow);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-hover);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04);
}

.btn-submit {
  width: 100%;
  max-width: 320px;
  padding: 16px 32px;
  font-size: var(--text-base);
  position: relative;
}

/* ── SECTION SHARED ─────────────────────────────────────────── */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: var(--sp-2);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 540px;
}

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 9, 26, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--t-base);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-inner nav {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.nav-link {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--t-base);
}
.nav-link:hover {
  color: var(--text-primary);
}

.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  transition: background var(--t-base), box-shadow var(--t-base);
}
.nav-cta:hover {
  background: var(--blue-light);
  box-shadow: 0 4px 16px var(--blue-glow);
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: var(--sp-12);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(45, 108, 255, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(139, 92, 246, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 10% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Subtle dot grid pattern */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 6px 14px;
  background: rgba(45, 108, 255, 0.12);
  border: 1px solid rgba(45, 108, 255, 0.3);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--violet-light) 55%, var(--teal-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
  margin-top: var(--sp-1);
}

.hero-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  width: 100%;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── SERVICES ───────────────────────────────────────────────── */
.services {
  padding-top: var(--sp-16);
  padding-bottom: var(--sp-16);
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-8);
}

.section-header .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  position: relative;
  overflow: hidden;
  transition: background var(--t-base), border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-blue::before  { background: var(--blue); }
.card-violet::before { background: var(--violet); }
.card-teal::before  { background: var(--teal); }

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.card-blue:hover  { box-shadow: 0 16px 48px var(--blue-glow); }
.card-violet:hover { box-shadow: 0 16px 48px var(--violet-glow); }
.card-teal:hover  { box-shadow: 0 16px 48px var(--teal-glow); }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-1);
  flex-shrink: 0;
}

.card-blue .card-icon  { background: rgba(45, 108, 255, 0.12); color: var(--blue-light); }
.card-violet .card-icon { background: rgba(139, 92, 246, 0.12); color: var(--violet-light); }
.card-teal .card-icon  { background: rgba(6, 182, 212, 0.12); color: var(--teal-light); }

.card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.card-platforms {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.card-blue .card-platforms  { color: var(--blue-light); }
.card-violet .card-platforms { color: var(--violet-light); }
.card-teal .card-platforms  { color: var(--teal-light); }

.card-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.card-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--sp-1);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--border);
}

.card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.card-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.card-blue  .card-features li::before { background: var(--blue-light); }
.card-violet .card-features li::before { background: var(--violet-light); }
.card-teal  .card-features li::before { background: var(--teal-light); }

/* ── CONTACT ────────────────────────────────────────────────── */
.contact {
  padding-top: var(--sp-16);
  padding-bottom: var(--sp-16);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: start;
}

.contact-header {
  position: sticky;
  top: 96px;
}

.contact-header .section-desc {
  margin-bottom: var(--sp-4);
}

.form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--sp-5);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
}

.required {
  color: var(--blue-light);
}

.optional {
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 400;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: var(--text-base);
  line-height: 1.5;
  transition: border-color var(--t-base), background var(--t-base), box-shadow var(--t-base);
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  resize: vertical;
  min-height: 48px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: rgba(45, 108, 255, 0.05);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.form-group input.is-error,
.form-group textarea.is-error {
  border-color: #FF5B6B;
  box-shadow: 0 0 0 3px rgba(255, 91, 107, 0.15);
}

.field-error {
  font-size: var(--text-xs);
  color: #FF7B87;
  min-height: 16px;
  line-height: 1.4;
}

.form-submit {
  display: flex;
  justify-content: flex-start;
  margin-top: var(--sp-1);
}

.btn-loading {
  display: none;
}

.btn-submit.loading .btn-text {
  display: none;
}

.btn-submit.loading .btn-loading {
  display: inline;
}

.btn-submit.loading {
  opacity: 0.7;
  pointer-events: none;
}

.form-success {
  padding: 0;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--teal-light);
  font-weight: 500;
  text-align: center;
  transition: all var(--t-base);
}

.form-success.visible {
  padding: 14px 16px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  padding-top: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-copy {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --container-px: 24px;
  }

  .hero-headline {
    font-size: var(--text-4xl);
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .contact-header {
    position: static;
  }
}

/* Mobile */
@media (max-width: 720px) {
  :root {
    --container-px: 16px;
    --sp-10: 64px;
    --sp-12: 80px;
    --sp-16: 80px;
  }

  /* Header nav */
  .header-inner nav {
    gap: var(--sp-2);
  }

  .nav-link:not(.nav-cta) {
    display: none;
  }

  /* Hero */
  .hero {
    padding-top: 96px;
    padding-bottom: var(--sp-10);
    min-height: unset;
    min-height: calc(100svh - 0px);
  }

  .hero-headline {
    font-size: var(--text-3xl);
    letter-spacing: -0.02em;
  }

  .hero-sub {
    font-size: var(--text-base);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-actions .btn {
    text-align: center;
    width: 100%;
  }

  .hero-stats {
    gap: var(--sp-2);
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: var(--sp-1);
  }

  .stat-divider {
    flex-shrink: 0;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }

  .section-title {
    font-size: var(--text-2xl);
  }

  .section-desc {
    font-size: var(--text-base);
  }

  /* Contact form */
  .form-row {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }

  .form-wrap {
    padding: var(--sp-4) var(--sp-3);
  }

  .btn-submit {
    max-width: 100%;
    width: 100%;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .hero-headline {
    font-size: var(--text-2xl);
  }

  .btn {
    padding: 12px 20px;
    font-size: var(--text-sm);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
