/* =========================
   Root Variables
========================= */
:root {
    --bg: #04110c;
    --bg-deep: #020906;
    --bg-soft: rgba(9, 29, 20, 0.82);
    --surface: rgba(9, 27, 19, 0.72);
    --surface-strong: rgba(10, 35, 24, 0.92);
    --line: rgba(124, 255, 186, 0.16);
    --line-strong: rgba(124, 255, 186, 0.28);
    --text: #ecfff5;
    --muted: #acd6bc;
    --accent: #6dffb0;
    --accent-strong: #33ff99;
    --accent-soft: rgba(109, 255, 176, 0.14);
    --danger: #ff6b6b;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
    --glow: 0 0 30px rgba(51, 255, 153, 0.18);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --container: 1180px;
  }
  
  /* =========================
     Base Reset
  ========================= */
  * {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    background:
      radial-gradient(circle at top left, rgba(51, 255, 153, 0.08), transparent 28%),
      radial-gradient(circle at top right, rgba(109, 255, 176, 0.08), transparent 20%),
      linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  img,
  video {
    display: block;
    max-width: 100%;
  }
  
  button,
  input,
  textarea {
    font: inherit;
  }
  
  button {
    cursor: pointer;
  }
  
  .container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
  }
  
  .site-shell {
    position: relative;
    z-index: 2;
  }
  
  /* =========================
     Matrix Background
  ========================= */
  .matrix-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
    opacity: 0.75;
  }
  
  .matrix-bg span {
    position: absolute;
    top: -20%;
    width: 1px;
    height: 220px;
    background: linear-gradient(180deg, transparent 0%, rgba(109, 255, 176, 0.55) 45%, transparent 100%);
    box-shadow: 0 0 16px rgba(109, 255, 176, 0.2);
    animation: matrixFall linear infinite;
  }
  
  .matrix-bg span:nth-child(1) { left: 8%; animation-duration: 12s; animation-delay: 0s; }
  .matrix-bg span:nth-child(2) { left: 22%; animation-duration: 15s; animation-delay: 2s; }
  .matrix-bg span:nth-child(3) { left: 39%; animation-duration: 11s; animation-delay: 1s; }
  .matrix-bg span:nth-child(4) { left: 58%; animation-duration: 14s; animation-delay: 3s; }
  .matrix-bg span:nth-child(5) { left: 74%; animation-duration: 10s; animation-delay: 1.5s; }
  .matrix-bg span:nth-child(6) { left: 90%; animation-duration: 16s; animation-delay: 2.5s; }
  
  @keyframes matrixFall {
    from {
      transform: translateY(-30vh);
      opacity: 0;
    }
    20% {
      opacity: 1;
    }
    to {
      transform: translateY(140vh);
      opacity: 0;
    }
  }
  
  /* =========================
     Navigation
  ========================= */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(18px);
    background: rgba(3, 12, 9, 0.72);
    border-bottom: 1px solid rgba(124, 255, 186, 0.08);
  }
  
  .nav-wrap {
    min-height: 84px;
    display: flex;
    align-items: center;
  }
  
  .main-nav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
  }
  
  .nav-link {
    color: var(--muted);
    font-weight: 600;
    transition: color 0.25s ease, transform 0.25s ease;
  }
  
  .nav-link:hover,
  .nav-link:focus-visible {
    color: var(--accent);
    transform: translateY(-1px);
  }
  
  .nav-link-left {
    justify-self: start;
  }
  
  .nav-link-right {
    justify-self: end;
  }
  
  .brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .brand-logo {
    height: 52px;
    width: auto;
    display: block;
    object-fit: contain;
  }
  
  .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #02130a;
    background: linear-gradient(135deg, var(--accent), #9dffd1);
    box-shadow: 0 0 24px rgba(109, 255, 176, 0.24);
  }
  
  .brand-text {
    font-weight: 700;
    letter-spacing: 0.04em;
  }
  
  /* =========================
     Hero Section
  ========================= */
  .hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
  }
  
  .hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  
  .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.25) brightness(0.45) saturate(0.7) hue-rotate(45deg);
  }
  
  .hero-video-overlay {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(2, 8, 5, 0.55) 0%, rgba(2, 7, 5, 0.82) 68%, rgba(2, 7, 5, 0.98) 100%),
      radial-gradient(circle at center, rgba(109, 255, 176, 0.08), transparent 36%);
  }
  
  .hero-content {
    position: relative;
    z-index: 1;
    padding: 110px 0 90px;
  }
  
  .hero-copy {
    max-width: 760px;
  }
  
  .hero-kicker,
  .section-tag,
  .modal-type {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(8, 21, 15, 0.62);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  
  .hero-section h1,
  .why-section h2,
  .contact-section h2 {
    margin: 0;
    letter-spacing: -0.04em;
    line-height: 1.04;
  }
  
  .hero-section h1 {
    font-size: clamp(42px, 7vw, 78px);
    max-width: 760px;
  }
  
  .hero-description,
  .section-text {
    color: var(--muted);
    font-size: 18px;
  }
  
  .hero-description {
    max-width: 680px;
    margin-top: 22px;
  }
  
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
  }
  
  /* =========================
     Buttons
  ========================= */
  .button {
    min-height: 52px;
    padding: 0 22px;
    border-radius: 14px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  }
  
  .button:hover,
  .button:focus-visible {
    transform: translateY(-2px);
  }
  
  .button-primary {
    color: #031109;
    background: linear-gradient(135deg, var(--accent), #a7ffd1);
    box-shadow: 0 16px 40px rgba(51, 255, 153, 0.2);
  }
  
  .button-secondary {
    color: var(--text);
    background: rgba(10, 26, 19, 0.7);
    border-color: var(--line-strong);
  }
  
  /* =========================
     Shared Cards / Surfaces
  ========================= */
  .card-surface {
    background: linear-gradient(180deg, rgba(10, 31, 22, 0.86), rgba(5, 16, 12, 0.86));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow), var(--glow);
  }
  
  /* =========================
     Why Section
  ========================= */
  .why-section {
    padding: 88px 0;
  }
  
  .why-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
    align-items: start;
  }
  
  .why-copy-panel,
  .projects-panel {
    display: grid;
    gap: 24px;
  }
  
  .why-section h2,
  .contact-section h2 {
    font-size: clamp(30px, 4vw, 54px);
  }
  
  .company-info {
    padding: 26px;
  }
  
  .company-info h3,
  .stat-card h3,
  .projects-intro h2,
  .modal-content h3 {
    margin: 0 0 12px;
  }
  
  .info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    color: var(--muted);
  }
  
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  
  .stat-card {
    padding: 22px;
  }
  
  .stat-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(109, 255, 176, 0.1);
    border: 1px solid var(--line-strong);
    color: var(--accent);
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 0 18px rgba(109, 255, 176, 0.08);
  }
  
  .stat-card p,
  .projects-intro p,
  .modal-content p,
  .contact-detail-item p {
    color: var(--muted);
  }
  
  /* =========================
     Project Stack
  ========================= */
  .project-stack {
    position: relative;
    min-height: 430px;
    padding: 28px 10px 10px;
    perspective: 1200px;
  }
  
  .project-card {
    position: absolute;
    top: 62px;
    left: 50%;
    width: min(100%, 330px);
    transform-origin: center bottom;
    border: 0;
    padding: 0;
    background: transparent;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 44px rgba(0,0,0,0.42);
    transition: transform 0.45s ease, box-shadow 0.35s ease, filter 0.35s ease;
  }
  
  .project-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: saturate(0.9) contrast(1.04);
  }
  
  .project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(2, 8, 5, 0.78) 100%);
  }
  
  .project-card-label {
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 2;
    font-weight: 700;
    letter-spacing: 0.04em;
  }
  
  .project-card-one {
    transform: translateX(-52%) rotate(-12deg) translateY(24px);
    z-index: 1;
  }
  
  .project-card-two {
    transform: translateX(-50%) rotate(-2deg) translateY(4px);
    z-index: 2;
  }
  
  .project-card-three {
    transform: translateX(-48%) rotate(9deg) translateY(18px);
    z-index: 3;
  }
  
  .project-stack:hover .project-card-one,
  .project-stack:focus-within .project-card-one {
    transform: translateX(-118%) rotate(-4deg) translateY(0);
  }
  
  .project-stack:hover .project-card-two,
  .project-stack:focus-within .project-card-two {
    transform: translateX(-50%) rotate(0deg) translateY(0);
  }
  
  .project-stack:hover .project-card-three,
  .project-stack:focus-within .project-card-three {
    transform: translateX(18%) rotate(4deg) translateY(0);
  }
  
  .project-card:hover,
  .project-card:focus-visible {
    box-shadow: 0 28px 54px rgba(0,0,0,0.5), 0 0 26px rgba(109, 255, 176, 0.15);
    filter: brightness(1.03);
  }
  
  /* =========================
     Contact Section
  ========================= */
  .contact-section {
    padding: 24px 0 90px;
  }
  
  .contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: start;
  }
  
  .contact-details,
  .contact-form-wrap {
    padding: 28px;
  }
  
  .contact-details {
    display: grid;
    gap: 18px;
    margin-top: 24px;
  }
  
  .contact-detail-item span {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  
  .contact-form {
    display: grid;
    gap: 18px;
  }
  
  .form-row {
    display: grid;
    gap: 8px;
  }
  
  .form-row label {
    font-weight: 600;
  }
  
  .form-row input,
  .form-row textarea {
    width: 100%;
    border: 1px solid var(--line-strong);
    background: rgba(3, 11, 8, 0.78);
    color: var(--text);
    border-radius: 14px;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  
  .form-row input:focus,
  .form-row textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(109, 255, 176, 0.12);
  }
  
  .form-row textarea {
    min-height: 160px;
    resize: vertical;
  }
  
  .form-button {
    width: 100%;
  }

  .hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
  }
  
  .contact-form-wrap {
    position: relative;
    overflow: hidden;
  }
  
  .contact-form.is-blurred {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
  }
  
  .form-status-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(2, 9, 6, 0.5);
    backdrop-filter: blur(4px);
  }
  
  .form-status-overlay.is-visible {
    display: flex;
  }
  
  .form-status-box {
    position: relative;
    width: min(420px, 100%);
    padding: 26px 24px 22px;
    border-radius: 22px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(10, 31, 22, 0.96), rgba(5, 16, 12, 0.96));
    box-shadow: var(--shadow), var(--glow);
    text-align: center;
  }
  
  .form-status-box h3 {
    margin: 0 0 10px;
    font-size: 24px;
    letter-spacing: -0.03em;
  }
  
  .form-status-box p {
    margin: 0;
    color: var(--muted);
  }
  
  .form-status-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgba(7, 20, 14, 0.78);
    color: var(--text);
    font-size: 22px;
    line-height: 1;
  }
  
  .form-status-box.is-error {
    border-color: rgba(255, 107, 107, 0.28);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255, 107, 107, 0.12);
  }
  
  /* =========================
     Footer
  ========================= */
  .site-footer {
    padding: 24px 0 40px;
  }
  
  .footer-wrap {
    border-top: 1px solid var(--line);
    padding-top: 22px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 18px;
    color: var(--muted);
  }
  
  .footer-left,
  .footer-right {
    display: grid;
    gap: 6px;
  }
  
  .footer-left p,
  .footer-right p {
    margin: 0;
  }
  
  .footer-right {
    justify-items: end;
    text-align: right;
  }
  
  .footer-right a:hover,
  .footer-right a:focus-visible {
    color: var(--accent);
  }
  
  @media (max-width: 820px) {
    .footer-wrap {
      grid-template-columns: 1fr;
    }
  
    .footer-right {
      justify-items: start;
      text-align: left;
    }
  }
  
  /* =========================
     Modal
  ========================= */
  .modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 90;
  }
  
  .modal.is-open {
    display: flex;
  }
  
  .modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(1, 6, 4, 0.78);
    backdrop-filter: blur(8px);
  }
  
  .modal-dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 0;
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(8, 24, 17, 0.98), rgba(3, 11, 8, 0.98));
    border: 1px solid var(--line-strong);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  }
  
  .modal-image-wrap {
    min-height: 100%;
    background: #06130d;
  }
  
  .modal-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .modal-content {
    padding: 34px;
  }
  
  .modal-content h3 {
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.08;
  }
  
  .modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: rgba(7, 20, 14, 0.78);
    color: var(--text);
    font-size: 24px;
  }
  
  /* =========================
     Responsive
  ========================= */
  @media (max-width: 1080px) {
    .why-grid,
    .contact-grid,
    .modal-dialog {
      grid-template-columns: 1fr;
    }
  
    .project-stack {
      min-height: 500px;
    }
  }
  
  @media (max-width: 820px) {
    .main-nav {
      grid-template-columns: 1fr;
      justify-items: center;
      gap: 12px;
      padding: 14px 0;
    }
  
    .nav-link-left,
    .nav-link-right,
    .brand {
      justify-self: center;
    }
  
    .stats-grid {
      grid-template-columns: 1fr;
    }
  
    .project-stack {
      min-height: 460px;
    }
  
    .project-card-one {
      transform: translateX(-54%) rotate(-9deg) translateY(22px);
    }
  
    .project-card-two {
      transform: translateX(-50%) rotate(-1deg) translateY(4px);
    }
  
    .project-card-three {
      transform: translateX(-46%) rotate(7deg) translateY(18px);
    }
  
    .project-stack:hover .project-card-one,
    .project-stack:focus-within .project-card-one {
      transform: translateX(-80%) rotate(-3deg) translateY(0);
    }
  
    .project-stack:hover .project-card-three,
    .project-stack:focus-within .project-card-three {
      transform: translateX(-18%) rotate(3deg) translateY(0);
    }
  }
  
  @media (max-width: 640px) {
    .container {
      width: min(var(--container), calc(100% - 28px));
    }
  
    .hero-content {
      padding: 82px 0 72px;
    }
  
    .hero-section h1 {
      font-size: 40px;
    }
  
    .hero-description,
    .section-text {
      font-size: 16px;
    }
  
    .company-info,
    .contact-details,
    .contact-form-wrap,
    .stat-card,
    .modal-content {
      padding: 22px;
    }
  
    .project-stack {
      min-height: 410px;
      padding-top: 18px;
    }
  
    .project-card {
      width: min(100%, 270px);
    }
  
    .project-stack:hover .project-card-one,
    .project-stack:focus-within .project-card-one {
      transform: translateX(-67%) rotate(-2deg) translateY(0);
    }
  
    .project-stack:hover .project-card-three,
    .project-stack:focus-within .project-card-three {
      transform: translateX(-30%) rotate(2deg) translateY(0);
    }
  
    .footer-wrap {
      flex-direction: column;
      align-items: flex-start;
    }
  }
  
  /* =========================
   Privacy Policy Page
========================= */
.privacy-hero-section {
  min-height: 58vh;
}

.privacy-policy-section {
  padding-top: 24px;
}

.privacy-policy-wrap {
  padding: 34px;
  display: grid;
  gap: 0;
}

.policy-section + .policy-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.policy-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.policy-list li + li {
  margin-top: 8px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-trust span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 21, 15, 0.58);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 640px) {
  .privacy-policy-wrap {
    padding: 22px;
  }

  .privacy-hero-section {
    min-height: 46vh;
  }
}

/* =========================
   Privacy Policy Page
========================= */
.privacy-hero-section {
  min-height: 58vh;
}

.privacy-policy-section {
  padding-top: 24px;
}

.privacy-policy-wrap {
  padding: 34px;
  display: grid;
  gap: 0;
}

.policy-section + .policy-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.policy-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.policy-list li + li {
  margin-top: 8px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-trust span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 21, 15, 0.58);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 640px) {
  .privacy-policy-wrap {
    padding: 22px;
  }

  .privacy-hero-section {
    min-height: 46vh;
  }
}