/* =============================================
   VANTA WEBSITES — Site Styles
   Color variables live here. To change any color
   site-wide, edit it once below and every page updates.
   ============================================= */

:root {
  --bg: #262222;           /* main page background */
  --bg-secondary: #2C2929; /* section / card background */
  --text: #FFFFFF;         /* primary text */
  --text-muted: #777777;   /* secondary / muted text */
  --accent: #17A1FF;       /* buttons, links, highlights */
  --accent-hover: #4db4ff;
  --border: rgba(255, 255, 255, 0.08);
  --max-width: 1140px;
  --font-display: "Space Grotesk", "Inter", sans-serif; /* headlines only — body text stays on Inter */
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

.section {
  padding: 72px 0;
}

.section--alt {
  background: var(--bg-secondary);
}

.section-header {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-header p {
  margin: 0;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #ffffff;
}

/* =============================================
   HEADER / NAV
   ============================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
}

.logo-mark {
  height: 32px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-cta {
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* Mobile nav: hidden by default via CSS, JS toggles .nav-open on <body> */
@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }

  body.nav-open .nav-links {
    transform: translateX(0);
  }

  .nav-links a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.1rem;
  }

  .nav-links .btn {
    margin-top: 16px;
  }

  .nav-toggle {
    display: block;
  }
}

/* =============================================
   HERO
   ============================================= */

.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.hero .container {
  max-width: 800px;
}

.hero p.lead {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =============================================
   HOMEPAGE HERO — split layout with signature mark
   ============================================= */

.hero--split {
  padding: 88px 0 0;
  text-align: left;
  overflow: hidden;
}

.hero--split .container {
  max-width: var(--max-width);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
}

.hero-copy .lead {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.hero--split .hero-actions {
  justify-content: flex-start;
}

.hero-copy,
.hero-visual {
  animation: hero-rise 0.7s ease both;
}

.hero-visual {
  animation-delay: 0.12s;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy, .hero-visual { animation: none; }
  .mark-triangle { animation: none !important; }
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
}

.hero-visual svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mark-triangle {
  animation: mark-float 5s ease-in-out infinite;
  transform-origin: 300px 104px;
}

@keyframes mark-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 860px) {
  .hero--split {
    padding-top: 56px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .hero-visual {
    max-width: 260px;
    order: -1;
    margin-bottom: 8px;
  }
  .hero-copy, .hero-copy .lead, .hero--split .hero-actions {
    text-align: center;
    justify-content: center;
  }
}

/* =============================================
   DIAGONAL SECTION DIVIDER — echoes the V mark's angle
   ============================================= */

.section-divider {
  height: 56px;
  background: var(--bg-secondary);
  clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
}

@media (max-width: 640px) {
  .section-divider {
    height: 34px;
  }
}

/* =============================================
   ICON SVGS (replace emoji for a more considered feel)
   ============================================= */

.icon-svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 161, 255, 0.35);
}

/* =============================================
   CARD GRIDS
   ============================================= */

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid--two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Sits in the grid beside the last card (e.g. homepage services row),
   instead of a separate centered line below — makes the leftover grid
   space intentional rather than a wrapping accident. */
.services-cta-cell {
  display: flex;
  align-items: center;
}

@media (max-width: 640px) {
  .services-cta-cell {
    justify-content: center;
    padding-top: 8px;
  }
}

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

.card .icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
  display: inline-block;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  margin-bottom: 20px;
}

/* =============================================
   CATEGORY / WHO-WE-SERVE BLOCKS
   ============================================= */

.category-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.category-block:last-child {
  border-bottom: none;
}

.category-block.reverse .category-media {
  order: 2;
}

.category-media {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.category-media .media-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(23, 161, 255, 0.14), transparent 70%);
}

.category-media .media-caption {
  position: relative;
  margin-top: 16px;
}

/* Abstract wireframe "browser" mockup — stands in for a real screenshot
   without pretending to be one. Pure CSS, no images. */
.mockup-frame {
  position: relative;
  width: 100%;
  max-width: 300px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.mockup-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.mockup-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
}

.mockup-body {
  padding: 16px;
}

.mockup-block {
  height: 22px;
  border-radius: 6px;
  background: rgba(23, 161, 255, 0.18);
  margin-bottom: 12px;
}

.mockup-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.mockup-lines {
  flex: 1.3;
  display: flex;
  flex-direction: column;
  gap: 7px;
  justify-content: center;
}

.mockup-line {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
}

.mockup-line.w-100 { width: 100%; }
.mockup-line.w-80  { width: 80%; }
.mockup-line.w-60  { width: 60%; }

.mockup-map {
  flex: 1;
  min-height: 58px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-map svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  opacity: 0.85;
}

.mockup-cta {
  width: 118px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent);
  opacity: 0.85;
}

.mockup-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.mockup-gallery span {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.mockup-gallery span.accent {
  background: rgba(23, 161, 255, 0.12);
  border-color: rgba(23, 161, 255, 0.25);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 20px;
}

.tag {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .category-block,
  .category-block.reverse .category-media {
    grid-template-columns: 1fr;
    order: 0;
  }
  .category-block {
    display: block;
  }
  .category-media {
    margin-bottom: 24px;
  }
}

/* =============================================
   CTA BAND
   ============================================= */

.cta-band {
  text-align: center;
  padding: 64px 0;
  background: var(--bg-secondary);
}

.cta-band h2 {
  margin-bottom: 12px;
}

.cta-band p {
  max-width: 500px;
  margin: 0 auto 28px;
}

/* =============================================
   FORM (Contact page)
   ============================================= */

.form-wrap {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-note {
  font-size: 0.85rem;
  margin-top: 16px;
  text-align: center;
}

/* =============================================
   PRICING
   ============================================= */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 14px 0 2px;
  line-height: 1.1;
}

.price-unit {
  font-family: var(--sans, inherit);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

.price-monthly {
  color: var(--accent);
  font-weight: 700;
}

.price-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.plan-section-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 24px 0 12px;
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.5;
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317A1FF' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 12 10 18 20 6'/%3E%3C/svg%3E") no-repeat center / contain;
}

.plan-best-for {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.pricing-card .btn {
  margin-top: 28px;
  width: 100%;
}

.pricing-custom {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.pricing-custom-info h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.pricing-custom-info p {
  margin-bottom: 6px;
  max-width: 560px;
}

.pricing-custom-price {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

.pricing-custom .btn {
  flex-shrink: 0;
}

.pricing-card,
.pricing-custom {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pricing-card:hover,
.pricing-custom:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 161, 255, 0.35);
}

/* Scroll reveal: fade + rise the first time an element enters the viewport.
   Generic on purpose so other pages can reuse the "reveal" class later. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pricing-grid .pricing-card:nth-child(2) {
  transition-delay: 0.1s;
}

.pricing-custom.reveal {
  transition-delay: 0.15s;
}

/* These elements carry both classes at once — combine into one explicit
   transition list here so this rule (higher specificity) wins outright,
   rather than letting the two single-class rules above silently cancel
   each other out via source order. */
.pricing-card.reveal,
.pricing-custom.reveal,
.card.reveal {
  transition: opacity 0.6s ease, transform 0.3s ease, border-color 0.2s ease;
}

/* Stagger reveal timing for a row of cards (e.g. the Services grid) */
.grid .card.reveal:nth-child(1) { transition-delay: 0s; }
.grid .card.reveal:nth-child(2) { transition-delay: 0.08s; }
.grid .card.reveal:nth-child(3) { transition-delay: 0.16s; }
.grid .card.reveal:nth-child(4) { transition-delay: 0.24s; }
.grid .card.reveal:nth-child(5) { transition-delay: 0.32s; }

/* Once an element has both `.reveal.is-visible` (from scroll-in) and is
   hovered, its transform is contested by two equal-specificity rules —
   this one wins deliberately by being more specific, so the hover lift
   actually applies instead of being silently cancelled by the reveal's
   own "settled" transform. */
.card.is-visible:hover,
.pricing-card.is-visible:hover,
.pricing-custom.is-visible:hover {
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .pricing-custom {
    flex-direction: column;
    align-items: stretch;
  }
  .pricing-custom .btn {
    width: 100%;
  }
}

/* =============================================
   ABOUT PAGE
   ============================================= */

.about-intro {
  font-size: 1.2rem;
  color: var(--text);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  text-align: center;
  max-width: 720px;
  margin: 0 auto 72px;
}

.pull-quote::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 24px;
  border-radius: 2px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-card {
  text-align: center;
  padding: 8px;
}

.value-card .icon-svg {
  margin: 0 auto 16px;
}

.value-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

.values-grid .value-card.reveal:nth-child(1) { transition-delay: 0s; }
.values-grid .value-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.values-grid .value-card.reveal:nth-child(3) { transition-delay: 0.2s; }

@media (max-width: 760px) {
  .values-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Meet the founder */
.founder-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
  max-width: 640px;
  margin: 80px auto 0;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}

.founder-photo {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.founder-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.founder-info h3 {
  margin-bottom: 12px;
}

.founder-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 8px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.founder-phone:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.founder-phone svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .founder-block {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .founder-photo {
    max-width: 200px;
  }
}

/* =============================================
   PLACEHOLDER SECTIONS (generic — kept for future use)
   ============================================= */

.placeholder-box {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-secondary);
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 56px 32px;
}

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}
