/* ============================================
   VISATICS.AI — Design System & Styles
   ============================================ */

:root {
  --ink:    #09090e;
  --paper:  #f4f1ec;
  --mid:    #1c1c26;
  --accent: #c8f135;
  --warm:   #ff6b35;
  --muted:  rgba(244,241,236,0.45);
  --border: rgba(244,241,236,0.12);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: 'DM Mono', monospace;
  cursor: none;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; cursor: none; }
button { cursor: none; }
img { display: block; max-width: 100%; }
strong { color: var(--paper); font-weight: 400; }

/* ---- Custom Cursor ---- */
#cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, background 0.2s ease;
}

#cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: border-color 0.2s ease;
}

#cursor.hovering {
  transform: translate(-50%, -50%) scale(2);
  background: var(--warm);
}

#cursor-ring.hovering {
  border-color: var(--warm);
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Section Label ---- */
.section-label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.6rem 3rem;
  background: linear-gradient(to bottom, rgba(9,9,14,0.9) 0%, rgba(9,9,14,0) 100%);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.logo-wrap {
  display: flex;
  flex-direction: column;
}

.logo {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--paper);
  letter-spacing: -0.01em;
}

.logo .ai, .footer-logo .ai {
  color: var(--accent);
}

.logo-tagline {
  font-family: 'DM Mono', monospace;
  font-size: 0.54rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(200,241,53,0.5);
  margin-top: 0.2rem;
}

.nav-links {
  display: flex;
  gap: 2.4rem;
  align-items: center;
  padding-top: 0.2rem;
}

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s ease;
}

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

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(135deg, #0d0e1a, #1a1a2e 40%, #0f1117);
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,241,53,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,241,53,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 20s linear infinite;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9,9,14,0.95) 0%, rgba(9,9,14,0.3) 60%, transparent);
  z-index: 1;
  pointer-events: none;
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 60px 60px, 60px 60px; }
}

/* ---- Hero Spotlight / Torch Reveal ---- */
.hero-spotlight {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  -webkit-mask-image: radial-gradient(
    circle 220px at var(--spot-x, -999px) var(--spot-y, -999px),
    rgba(0,0,0,0.9) 0%,
    rgba(0,0,0,0.5) 30%,
    rgba(0,0,0,0.15) 55%,
    transparent 75%
  );
  mask-image: radial-gradient(
    circle 220px at var(--spot-x, -999px) var(--spot-y, -999px),
    rgba(0,0,0,0.9) 0%,
    rgba(0,0,0,0.5) 30%,
    rgba(0,0,0,0.15) 55%,
    transparent 75%
  );
  transition: opacity 0.3s ease;
}

.hero-spotlight::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,241,53,0.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  left: var(--spot-x, -999px);
  top: var(--spot-y, -999px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 3rem 5rem;
}

.hero-eyebrow {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  line-height: 0.95;
  color: var(--paper);
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.5s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-subtitle {
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.7s forwards;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.9s forwards;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1rem 2rem;
  border: none;
  transition: background 0.25s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: #d4f94d;
  transform: translateY(-1px);
}

.btn-ghost {
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  color: var(--muted);
  transition: color 0.25s ease;
}

.btn-ghost:hover {
  color: var(--accent);
}

.arrow-down {
  margin-left: 0.4rem;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 10rem 3rem;
}

.about-grid {
  max-width: 760px;
}

.about-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.1;
  color: var(--paper);
  margin-bottom: 2.4rem;
}

.about-title em {
  font-style: italic;
  color: var(--muted);
}

.about-text p {
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 2;
  margin-bottom: 1.4rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.stat-card {
  background: var(--mid);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  transition: background 0.3s ease;
}

.stat-card:hover {
  background: #22222f;
}

.stat-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 3.8rem;
  line-height: 1;
  color: var(--paper);
  margin-bottom: 0.6rem;
}

.stat-suffix {
  color: var(--accent);
}

.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

/* ============================================
   SERVICES INTRO
   ============================================ */
.services-intro {
  text-align: center;
  padding: 6rem 3rem 4rem;
}

.services-intro-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 5rem);
  color: var(--paper);
  margin-bottom: 2.5rem;
}

.services-intro-title em {
  font-style: italic;
}

.deco-line {
  width: 1px;
  height: 80px;
  background: var(--border);
  margin: 0 auto;
}

/* ============================================
   SERVICE PANELS
   ============================================ */
.service-panel {
  position: relative;
  min-height: 100vh;
  height: auto;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.service-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  will-change: transform;
}

.service-panel:hover .service-bg {
  transform: scale(1.03);
}

.service-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9,9,14,0.98) 0%, rgba(9,9,14,0.6) 50%, rgba(9,9,14,0.2) 100%);
}

/* Fallback gradients */
.s-proto .service-bg { background-color: #0d1520; }
.s-dev   .service-bg { background-color: #0e1a12; }
.s-eval  .service-bg { background-color: #17100e; }
.s-cto   .service-bg { background-color: #0e0e1f; }

.service-big-num {
  position: absolute;
  top: 3rem;
  right: 3rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(8rem, 15vw, 18rem);
  color: rgba(244,241,236,0.04);
  pointer-events: none;
  line-height: 1;
}

.service-content {
  position: relative;
  padding: 8rem 4rem 4rem;
  max-width: 960px;
  z-index: 1;
  background: linear-gradient(135deg, rgba(9,9,14,0.65) 0%, rgba(9,9,14,0.45) 60%, rgba(9,9,14,0.15) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-right: 1px solid var(--border);
}

.service-num {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.service-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  color: var(--paper);
  margin-bottom: 1.5rem;
}

.service-title em {
  font-style: italic;
}

.service-desc {
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(244,241,236,0.7);
  line-height: 1.9;
  max-width: 720px;
  margin-bottom: 0;
}

.service-detail {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 1.6rem 0 1.8rem;
}

.service-detail-item {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.8rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(244,241,236,0.65);
  line-height: 1.6;
}

.service-detail-item .arrow {
  color: var(--accent);
  flex-shrink: 0;
}

.service-outcome {
  margin-top: 1.6rem;
  padding: 1rem 1.4rem;
  border-left: 2px solid var(--accent);
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(244,241,236,0.65);
  line-height: 1.8;
}

.service-outcome strong {
  color: var(--paper);
  font-weight: 400;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.8rem;
}

.tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  padding: 0.35rem 0.8rem;
  color: var(--muted);
}

/* Prompt Aside */
.prompt-aside {
  position: absolute;
  top: 50%;
  right: 3rem;
  transform: translateY(-50%);
  width: 260px;
  background: rgba(9,9,14,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: 1.4rem 1.6rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.service-panel:hover .prompt-aside {
  opacity: 1;
}

.prompt-aside-label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.prompt-aside-text {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  font-weight: 300;
  color: rgba(244,241,236,0.65);
  line-height: 1.7;
}

/* ============================================
   TAGLINE SECTION
   ============================================ */
.tagline-section {
  padding: 10rem 3rem;
  position: relative;
}

.tagline-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -10%;
  width: 50%;
  height: 60%;
  transform: translateY(-50%);
  background: radial-gradient(ellipse, rgba(200,241,53,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.tagline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.tagline-type {
  line-height: 0.88;
}

.tagline-line {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(5rem, 11vw, 11rem);
  letter-spacing: -0.02em;
}

.tagline-prefix,
.tagline-root-1 {
  color: rgba(244,241,236,0.18);
}

.tagline-spacer {
  visibility: hidden;
}

.tagline-root-2 {
  color: var(--accent);
}

.tagline-caption {
  max-width: 380px;
}

.tagline-caption p {
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 2;
  margin-bottom: 1.2rem;
}

.tagline-caption strong {
  color: var(--paper);
  font-weight: 400;
}

/* ============================================
   CONTACT CTA
   ============================================ */
.contact {
  padding: 10rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(200,241,53,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.contact-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 1;
  color: var(--paper);
  margin-bottom: 2rem;
}

.contact-title em {
  font-style: italic;
  color: var(--accent);
}

.contact-subtitle {
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 3rem;
}

.contact-email {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  color: var(--paper);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.3rem;
  transition: color 0.25s ease;
}

.contact-email:hover {
  color: var(--accent);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.4rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--paper);
}

.footer-tagline {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(200,241,53,0.4);
  margin-top: 0.2rem;
}

.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: rgba(244,241,236,0.25);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .prompt-aside { display: none; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .tagline-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .tagline-line {
    font-size: clamp(3.5rem, 12vw, 7rem);
  }
}

@media (max-width: 768px) {
  .nav { padding: 1.2rem 1.5rem; }
  .nav-links { gap: 1.2rem; }
  .hero-content { padding: 2rem 1.5rem 4rem; }
  .about { padding: 6rem 1.5rem; }
  .services-intro { padding: 4rem 1.5rem 3rem; }
  .service-content { padding: 6rem 1.5rem 3rem; }
  .service-big-num { right: 1.5rem; }
  .tagline-section { padding: 6rem 1.5rem; }
  .contact { padding: 6rem 1.5rem; }
  .footer { padding: 2rem 1.5rem; flex-direction: column; gap: 1.2rem; text-align: center; }

  body { cursor: auto; }
  #cursor, #cursor-ring { display: none; }
}
