/* =============================================
   FONTS — Sharp Grotesk (Synvora brand typeface)
   Used for headings only; Inter handles body text
   ============================================= */
@font-face {
  font-family: "Sharp Grotesk";
  src: url("fonts/SharpGrotesk-Book10.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sharp Grotesk";
  src: url("fonts/SharpGrotesk-Medium10.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sharp Grotesk";
  src: url("fonts/SharpGrotesk-SemiBold10.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sharp Grotesk";
  src: url("fonts/SharpGrotesk-Bold10.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sharp Grotesk";
  src: url("fonts/SharpGrotesk-Black10.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* =============================================
   CUSTOM PROPERTIES
   ============================================= */
:root {
  --bg-dark: #0f172a;
  --card-bg: #1e293b;
  --accent: #38bdf8;
  --accent-dim: rgba(56, 189, 248, 0.12);
  --text-main: #f8fafc;
  --text-dim: #94a3b8;
  --border: #334155;
  --max-width: 1200px;
  --navbar-h: 84px;
  --section-pad: clamp(4rem, 8vw, 7rem);
  --gutter: clamp(1.25rem, 5vw, 6rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-h);
  font-size: 16px;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Sharp Grotesk", "Inter", system-ui, sans-serif;
  color: var(--text-main);
  line-height: 1.2;
}

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

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

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

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.96);
  border-bottom-color: var(--border);
}

.logo a {
  display: flex;
  align-items: center;
}

.logo img {
  height: 62px;
  transition: opacity 0.2s ease;
}

.logo a:hover img {
  opacity: 0.85;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: #cbd5e1;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #f8fafc;
}

.cta-btn {
  background: var(--accent) !important;
  color: #0f172a !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 6px;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cta-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  color: #0f172a !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 10;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   BUTTONS
   ============================================= */
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.primary-btn:hover,
.secondary-btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.primary-btn:focus-visible,
.secondary-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.primary-btn {
  background: var(--accent);
  color: #0f172a;
  border-color: var(--accent);
}

.secondary-btn {
  background: rgba(248, 250, 252, 0.06);
  color: #f8fafc;
  border-color: rgba(248, 250, 252, 0.18);
}

.secondary-btn:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: var(--accent);
  color: var(--accent);
}

/* =============================================
   HERO ENTRANCE ANIMATION
   ============================================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--navbar-h) var(--gutter) 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(56, 189, 248, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(30, 41, 59, 0.8) 0%, transparent 60%),
    var(--bg-dark);
  position: relative;
  overflow: hidden;
}

/* subtle grid texture */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 820px;
  width: 100%;
}

.hero-label {
  animation: fadeUp 0.5s 0.1s ease-out both;
}

.hero h1 {
  animation: fadeUp 0.6s 0.2s ease-out both;
}

.hero-sub {
  animation: fadeUp 0.6s 0.32s ease-out both;
}

.hero-btns {
  animation: fadeUp 0.6s 0.44s ease-out both;
}

.hero-divider {
  animation: fadeUp 0.6s 0.56s ease-out both;
}

.hero-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 100px;
  background: rgba(56, 189, 248, 0.06);
}

.hero h1 {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: #94a3b8;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
  justify-content: center;
}

.hero-divider span {
  flex: 1;
  max-width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.hero-divider-text {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-dim);
  white-space: nowrap;
  margin: 0;
}

.hero-divider-text strong {
  color: var(--text-main);
  font-weight: 600;
}

/* =============================================
   SERVICES
   ============================================= */
.services {
  padding: var(--section-pad) var(--gutter);
  padding-top: calc(var(--section-pad) + 1.5rem);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  text-align: center;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.03em;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(56, 189, 248, 0.1);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.service-card h3 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.6rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.service-card p {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
  flex-grow: 1;
  line-height: 1.65;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.feature-list li {
  font-size: 0.85rem;
  color: #94a3b8;
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}

.feature-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

.edge {
  display: block;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

/* =============================================
   AUDIT CTA
   ============================================= */
.audit-cta {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--section-pad) var(--gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.audit-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(56, 189, 248, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.audit-content {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.audit-content h2 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.audit-content p {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: #94a3b8;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
  padding: var(--section-pad) var(--gutter);
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(56, 189, 248, 0.05) 0%, transparent 70%),
    var(--bg-dark);
}

.contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}

.contact-left h2 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 1rem;
  line-height: 1.1;
}

.contact-left p {
  font-size: 0.97rem;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: #94a3b8;
}

.contact-details li svg {
  flex-shrink: 0;
  color: var(--accent);
}

.contact-details a {
  color: #f8fafc;
  transition: color 0.2s ease;
}

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

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.9rem;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #475569;
}

.form-group select {
  color: #94a3b8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group select option {
  background: #1e293b;
  color: #f8fafc;
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.form-submit {
  margin-top: 0.25rem;
  width: 100%;
  padding: 0.85rem;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 2rem var(--gutter);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  height: 44px;
}

.footer-brand p {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.82rem;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

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

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* =============================================
   RESPONSIVE — Tablet (max 1024px)
   ============================================= */
@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
}

/* =============================================
   RESPONSIVE — Mobile nav (max 768px)
   ============================================= */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--navbar-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem var(--gutter);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    color: var(--text-main);
  }

  .nav-links li:last-child a {
    border-bottom: none;
    border-radius: 0;
    text-align: left;
    background: transparent;
    color: var(--accent);
    padding-bottom: 1rem;
  }

  .cta-btn {
    background: transparent !important;
    border-color: transparent !important;
  }

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

  .service-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =============================================
   RESPONSIVE — Small mobile (max 480px)
   ============================================= */
@media (max-width: 480px) {
  :root {
    --gutter: 1.25rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-btns,
  .contact-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
    padding: 0.9rem 1rem;
  }

  .footer-nav {
    gap: 1rem;
  }
}

/* =============================================
   RESPONSIVE — Large screens (min 1440px)
   ============================================= */
@media (min-width: 1440px) {
  :root {
    --gutter: 8rem;
  }

  .hero h1 {
    font-size: 4.25rem;
  }
}
