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

html {
  scroll-behavior: smooth;
}

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

ul {
  list-style: none;
}

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

/* ===== ROOT ===== */
:root {
  --bg: #070b14;
  --bg-soft: #0f1727;
  --panel: rgba(15, 23, 39, 0.88);
  --panel-strong: #121a2b;
  --text: #f3f7ff;
  --text-muted: #9aa8c7;
  --line: rgba(255, 255, 255, 0.08);
  --primary: #6d5efc;
  --primary-2: #00d0ff;
  --accent: #8b5cf6;
  --success: #30e3a3;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --radius-sm: 16px;
  --container: 1240px;
}

/* ===== BASE ===== */
body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(109, 94, 252, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(0, 208, 255, 0.14), transparent 24%),
    linear-gradient(180deg, #050812 0%, #08101c 100%);
  color: var(--text);
  line-height: 1.65;
}

body::selection {
  background: rgba(109, 94, 252, 0.35);
}

.container {
  width: min(92%, var(--container));
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-2);
  font-weight: 700;
  margin-bottom: 18px;
}

.section-label::before {
  content: "";
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

h1,
h2,
h3,
h4 {
  line-height: 1.1;
  letter-spacing: -0.03em;
}

p {
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 30px rgba(109, 94, 252, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(109, 94, 252, 0.45);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.text-link {
  color: var(--primary-2);
  font-weight: 700;
  transition: 0.3s ease;
}

.text-link:hover {
  color: #fff;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.28rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-list a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: 0.3s ease;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transition: 0.3s ease;
}

.nav-list a:hover,
.nav-list a.active {
  color: #fff;
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
  border-radius: 2px;
}

/* ===== HERO ===== */
.hero-section {
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}

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

.hero-content h1 {
  max-width: 700px;
  font-size: clamp(2.8rem, 5vw, 5.4rem);
  margin-bottom: 22px;
  color: #fff;
}

.hero-content p {
  max-width: 620px;
  font-size: 1.08rem;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-highlights li {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: #d9e4ff;
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.hero-card {
  overflow: hidden;
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.hero-card img {
  height: 100%;
  object-fit: cover;
}

.hero-card-main {
  height: 520px;
  transform: rotate(-2deg);
}

.hero-card-small {
  position: absolute;
  right: -10px;
  bottom: -25px;
  width: 54%;
  height: 250px;
  transform: rotate(6deg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== PARTNERS ===== */
.partners-section {
  padding: 24px 0 60px;
}

.partners-title {
  text-align: center;
  color: #dbe7ff;
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.partners-grid span {
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ===== ABOUT PREVIEW ===== */
.about-preview-section {
  padding: 80px 0;
}

.about-preview-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 38px;
  align-items: center;
}

.about-preview-image {
  position: relative;
}

.about-preview-image::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(109, 94, 252, 0.18), rgba(0, 208, 255, 0.1));
  filter: blur(4px);
  z-index: 0;
}

.about-preview-image img {
  position: relative;
  z-index: 1;
  height: 460px;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-preview-content {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 40px;
  backdrop-filter: blur(10px);
}

.about-preview-content h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  color: #fff;
  margin-bottom: 18px;
}

.about-preview-content p + p {
  margin-top: 14px;
}

.about-preview-content .text-link {
  display: inline-block;
  margin-top: 22px;
}

/* ===== COMMON SECTION HEADING ===== */
.section-heading {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 46px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3.3rem);
  color: #fff;
  margin-bottom: 16px;
}

/* ===== SERVICES ===== */
.services-section {
  padding: 90px 0;
}

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

.service-card {
  position: relative;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: 0.35s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(109, 94, 252, 0.12), transparent 50%, rgba(0, 208, 255, 0.08));
  opacity: 0;
  transition: 0.35s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(109, 94, 252, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(109, 94, 252, 0.18), rgba(0, 208, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 800;
}

.service-card h3 {
  color: #fff;
  font-size: 1.18rem;
  margin-bottom: 12px;
}

/* ===== PROJECTS ===== */
.projects-section {
  padding: 90px 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-auto-rows: 260px;
  gap: 22px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.project-card.large {
  grid-row: span 2;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.6s ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.05), rgba(7, 11, 20, 0.85));
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px;
}

.project-overlay h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.project-overlay p {
  color: #d7e3ff;
}

/* ===== STATS ===== */
.stats-section {
  padding: 28px 0 92px;
}

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

.stat-card {
  padding: 30px;
  text-align: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.stat-card h3 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  color: #fff;
  margin-bottom: 10px;
}

/* ===== PROCESS ===== */
.process-section {
  padding: 0 0 90px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.process-card {
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  transition: 0.35s ease;
}

.process-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 208, 255, 0.22);
}

.process-step {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(109, 94, 252, 0.14);
  color: #dfe5ff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process-card h3 {
  color: #fff;
  font-size: 1.18rem;
  margin-bottom: 12px;
}

/* ===== CTA ===== */
.cta-section {
  padding: 0 0 90px;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 42px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(109, 94, 252, 0.18), rgba(0, 208, 255, 0.12)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow);
}

.cta-content h2 {
  color: #fff;
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 14px;
}

.cta-content p {
  max-width: 700px;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 70px 0 24px;
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 15, 0.65);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 34px;
}

.footer-brand p {
  max-width: 420px;
  margin-top: 16px;
}

.footer-links h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-links ul li + li {
  margin-top: 10px;
}

.footer-links a {
  color: var(--text-muted);
  transition: 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .hero-grid,
  .about-preview-grid,
  .services-grid,
  .process-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid,
  .about-preview-grid {
    align-items: start;
  }

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

  .project-card.large {
    grid-row: span 1;
    min-height: 320px;
  }

  .footer-grid,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 88px;
    right: 4%;
    width: min(320px, 92vw);
    padding: 18px;
    border-radius: 20px;
    background: rgba(10, 16, 29, 0.98);
    border: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--shadow);
  }

  .nav-list.show {
    display: flex;
  }

  .hero-grid,
  .about-preview-grid,
  .services-grid,
  .process-grid,
  .stats-grid,
  .footer-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: 70px;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-card-main {
    height: 400px;
    transform: none;
  }

  .hero-card-small {
    position: relative;
    width: 72%;
    height: 190px;
    right: auto;
    bottom: auto;
    margin: -40px 0 0 auto;
    transform: none;
  }

  .about-preview-image img {
    height: 380px;
  }

  .cta-box {
    padding: 32px 24px;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .site-header .container {
    min-height: 74px;
  }

  .hero-content h1 {
    font-size: 2.35rem;
  }

  .hero-content p,
  .section-heading p,
  .cta-content p {
    font-size: 0.98rem;
  }

  .about-preview-content,
  .service-card,
  .process-card,
  .stat-card {
    padding: 22px;
  }

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

  .btn {
    width: 100%;
  }

  .hero-highlights {
    gap: 10px;
  }

  .hero-highlights li {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* ===== CONTACT PAGE ===== */
.contact-section {
  padding: 90px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: start;
}

.contact-info-panel,
.contact-form-panel,
.faq-card {
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.contact-info-panel h2,
.contact-form-panel h2 {
  color: #fff;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  margin-bottom: 14px;
}

.contact-info-list {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.contact-info-card {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.contact-info-card h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 8px;
}

.contact-info-card p,
.contact-info-card a {
  color: var(--text-muted);
  transition: 0.3s ease;
}

.contact-info-card a:hover {
  color: #fff;
}

.contact-form {
  margin-top: 26px;
}

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

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

.form-group label {
  display: inline-block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  transition: 0.3s ease;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(109, 94, 252, 0.55);
  box-shadow: 0 0 0 4px rgba(109, 94, 252, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* ===== FAQ ===== */
.faq-section {
  padding: 0 0 90px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.faq-card h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 12px;
}

/* ===== INNER HERO ===== */
.inner-hero {
  padding-bottom: 50px;
}

/* ===== CONTACT RESPONSIVE ===== */
@media (max-width: 1100px) {
  .contact-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-info-panel,
  .contact-form-panel,
  .faq-card {
    padding: 22px;
  }
}

/* ===== POLICY PAGE ===== */
.policy-hero {
  padding: 70px 0 30px;
}

.policy-hero-box {
  max-width: 900px;
  padding: 36px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.policy-hero-box h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  margin-bottom: 14px;
}

.policy-hero-box p {
  max-width: 760px;
}

.policy-section {
  padding: 20px 0 90px;
}

.policy-content {
  padding: 40px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.policy-content h1 {
  color: #fff;
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 24px;
}

.policy-content h5 {
  color: #fff;
  font-size: 1.08rem;
  margin-top: 28px;
  margin-bottom: 12px;
  font-weight: 700;
}

.policy-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 14px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.policy-content a {
  color: var(--primary-2);
}

@media (max-width: 700px) {
  .policy-hero-box,
  .policy-content {
    padding: 24px;
    border-radius: 22px;
  }

  .policy-content p {
    font-size: 0.96rem;
    line-height: 1.75;
  }

  .policy-hero {
    padding: 50px 0 20px;
  }

  .policy-section {
    padding: 10px 0 70px;
  }
}