/* ==========================================================================
   Subranova AI Solutions — Styles
   ========================================================================== */

:root {
  --navy-950: #0B1220;
  --navy-900: #0F172A;
  --navy-800: #111827;
  --near-white: #F8FAFC;
  --accent: #22D3EE;
  --accent-dark: #0EA5C4;
  --text-body: #1E293B;
  --text-muted: #475569;
  --text-on-dark: #E2E8F0;
  --text-on-dark-muted: #94A3B8;
  --border-light: #E2E8F0;
  --border-dark: rgba(148, 163, 184, 0.18);
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-heading: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container-w: 1160px;
  --shadow-card: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-card-hover: 0 12px 32px rgba(15, 23, 42, 0.10);
}

/* --------------------------- Reset / base -------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--near-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: inherit;
}

p {
  margin: 0 0 1em;
}

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

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--accent);
  color: var(--navy-950);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

.accent-text {
  color: var(--accent-dark);
}

/* ------------------------------- Buttons --------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-accent {
  background: var(--accent);
  color: var(--navy-950);
}

.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 211, 238, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--near-white);
  border-color: rgba(248, 250, 252, 0.4);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

/* -------------------------------- Header --------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  border-bottom-color: var(--border-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--near-white);
}

.brand-mark {
  border-radius: 8px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--near-white);
}

.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.site-nav ul {
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: var(--text-on-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

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

.site-nav a.active,
.footer-nav a.active {
  color: var(--accent);
  position: relative;
}

.site-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-cta {
  padding: 10px 18px;
  font-size: 0.85rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--near-white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* -------------------------------- Hero ------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: var(--near-white);
  padding: 120px 0 100px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  filter: url(#fluid-distort);
}

.hero-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  animation: blob-float 14s ease-in-out infinite;
}

.blob-one {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -120px;
  left: -80px;
}

.blob-two {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #14B8A6 0%, transparent 70%);
  bottom: -160px;
  right: -100px;
  animation-delay: -7s;
}

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.08); }
}

.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.cursor-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.28) 0%, rgba(167, 139, 250, 0.12) 45%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
  transition: opacity 0.3s ease;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

/* ----------------------------- Page hero (inner pages) --------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: var(--near-white);
  padding: 100px 0 80px;
  text-align: center;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  margin-bottom: 0.5em;
}

.page-hero-sub {
  color: var(--text-on-dark);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  margin-bottom: 0;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 0.5em;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-on-dark);
  max-width: 620px;
  margin-bottom: 2em;
}

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

/* ------------------------------- Sections --------------------------------- */

.section {
  padding: 96px 0;
}

.section-alt {
  background: #F1F5F9;
}

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

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* --------------------------------- Grid / Cards ---------------------------- */

.grid {
  display: grid;
  gap: 28px;
}

.services-grid {
  grid-template-columns: repeat(4, 1fr);
}

.why-grid {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4em;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-dark);
  margin-bottom: 18px;
}

.icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ------------------------------ Feature band ------------------------------- */

.feature-band {
  background: var(--navy-950);
  color: var(--near-white);
  padding: 56px 0;
}

.feature-band-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.feature-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
}

.feature-tile .icon {
  width: 30px;
  height: 30px;
  color: var(--accent);
}

/* -------------------------------- Approach ---------------------------------- */

.approach-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.approach-step {
  position: relative;
  padding: 32px 24px 24px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: #fff;
}

.step-num {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.approach-step h3 {
  font-size: 1.1rem;
}

.approach-step p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ------------------------------ Founder profile ---------------------------- */

.founder-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
}

.founder-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(34, 211, 238, 0.25);
  box-shadow: var(--shadow-card);
}

.founder-name {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin-bottom: 0.2em;
}

.founder-title {
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1em;
}

.founder-bio {
  color: var(--text-muted);
  margin-bottom: 1.6em;
}

.founder-linkedin .linkedin-icon {
  width: 18px;
  height: 18px;
}

/* -------------------------------- Contact ------------------------------------ */

.contact-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: var(--near-white);
  text-align: center;
}

.contact-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 700px;
  height: 700px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(34, 211, 238, 0.25) 0%, transparent 65%);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.contact-inner h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
}

.contact-inner p {
  color: var(--text-on-dark);
  font-size: 1.05rem;
  margin-bottom: 2em;
}

.contact-cta {
  font-size: 1.2rem;
  padding: 20px 40px;
}

.contact-cta .icon {
  width: 24px;
  height: 24px;
}

/* ------------------------------ Contact grid (office + form) ------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 48px;
  align-items: start;
}

.contact-address address {
  font-style: normal;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.9;
}

.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.contact-form-wrap p {
  color: var(--text-muted);
}

.contact-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.contact-form label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-body);
  background: var(--near-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}

.contact-form textarea {
  resize: vertical;
}

.form-status {
  margin: 16px 0 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.form-status.is-success {
  color: var(--accent-dark);
}

.form-status.is-error {
  color: #DC2626;
}

/* -------------------------------- CTA banner ---------------------------------- */

.cta-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: var(--near-white);
  text-align: center;
  padding: 72px 0;
}

.cta-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.cta-banner p {
  color: var(--text-on-dark);
  font-size: 1.02rem;
  margin-bottom: 1.8em;
}

.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 600;
  transition: gap 0.15s ease, color 0.15s ease;
}

.cta-link:hover {
  color: var(--near-white);
  gap: 10px;
}

/* ------------------------------- Section links (teasers) ----------------------- */

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-dark);
  font-family: var(--font-heading);
  font-weight: 600;
  transition: gap 0.15s ease;
}

.section-link:hover {
  gap: 10px;
}

.section-foot {
  text-align: center;
  margin-top: 40px;
}

/* --------------------------------- Footer -------------------------------------- */

.site-footer {
  background: var(--navy-950);
  color: var(--text-on-dark-muted);
  padding: 56px 0 32px;
  border-top: 1px solid var(--border-dark);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.footer-tagline {
  max-width: 420px;
  margin: 0;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.footer-nav a {
  color: var(--text-on-dark);
  font-size: 0.9rem;
}

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

.footer-phone {
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
}

.footer-address {
  font-style: normal;
  max-width: 420px;
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
  margin: 0;
}

.footer-copy {
  font-size: 0.82rem;
  margin: 8px 0 0;
  color: var(--text-on-dark-muted);
}

/* ---------------------------- Scroll reveal animation ---------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-blob {
    animation: none;
  }
  .hero-bg {
    filter: none;
  }
  html {
    scroll-behavior: auto;
  }
  .card,
  .btn-accent {
    transition: none;
  }
}

/* ------------------------------------ Responsive --------------------------------- */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .approach-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-band-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 860px) {
  .site-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy-950);
    border-bottom: 1px solid var(--border-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav.is-open {
    max-height: 320px;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }

  .site-nav ul li a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-dark);
  }

  .header-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 96px 0 72px;
  }

  .page-hero {
    padding: 84px 0 60px;
  }
}

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

  .services-grid,
  .why-grid,
  .approach-steps,
  .feature-band-inner {
    grid-template-columns: 1fr;
  }

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

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

  .section {
    padding: 64px 0;
  }

  .contact-cta {
    width: 100%;
  }

  .cta-banner-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-banner-actions .btn {
    width: 100%;
  }
}
