:root {
  --bg: #0b0f14;
  --bg-soft: #121821;
  --card: rgba(255, 255, 255, 0.04);
  --card-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f7fa;
  --muted: #a8b0bb;
  --white: #ffffff;
  --accent: #183a68;
  --accent-2: #254f89;
  --light-bg: #f5f7fb;
  --light-text: #111827;
  --light-muted: #5d6672;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  --radius: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 15, 20, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  padding: 6px;
}

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

.brand-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
}

.brand-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  transition: 0.2s ease;
}

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

.nav-cta {
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 999px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
  background:
    radial-gradient(circle at top left, rgba(37, 79, 137, 0.28), transparent 35%),
    radial-gradient(circle at bottom right, rgba(24, 58, 104, 0.25), transparent 35%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
}

.eyebrow,
.section-label {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dce5f0;
  background: rgba(255,255,255,0.04);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  max-width: 12ch;
}

.hero-text {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 28px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--white);
  box-shadow: var(--shadow);
}

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

.btn-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--white);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.04);
}

.btn-full {
  width: 100%;
}

.hero-points {
  display: grid;
  gap: 10px;
}

.hero-point {
  color: #d7dee8;
  padding-left: 18px;
  position: relative;
}

.hero-point::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #78a2dd;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 11px;
}

.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero-card-top {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-card-item {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.hero-card-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.hero-card-item span {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.06);
  color: #cfe0f7;
  font-weight: 800;
}

.hero-card-item p {
  color: #dce3ec;
}

/* Sections */
.section {
  padding: 92px 0;
  background: var(--light-bg);
  color: var(--light-text);
}

.section-dark {
  background: var(--bg);
  color: var(--text);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading h2,
.about-grid h2,
.contact-copy h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  margin-bottom: 14px;
}

.section-heading p,
.about-grid p,
.contact-copy p {
  color: var(--light-muted);
  font-size: 1.02rem;
}

.section-dark .section-label,
.section-dark p,
.contact-section .section-label,
.contact-section p {
  color: var(--muted);
}

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

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 14px 40px rgba(17, 24, 39, 0.06);
  border: 1px solid rgba(17,24,39,0.06);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: #eef3fb;
  margin-bottom: 16px;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.service-card p {
  color: var(--light-muted);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: start;
}

.about-grid p {
  color: var(--muted);
  margin-bottom: 16px;
}

.about-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.about-stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}

.about-stat strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.about-stat span {
  color: var(--muted);
}

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

.portfolio-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(17, 24, 39, 0.06);
  border: 1px solid rgba(17,24,39,0.06);
}

.portfolio-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.placeholder {
  background:
    linear-gradient(135deg, rgba(24,58,104,0.08), rgba(37,79,137,0.15)),
    #eef3fb;
  color: #1f3353;
}

.portfolio-info {
  padding: 20px;
}

.portfolio-info h3 {
  margin-bottom: 8px;
}

.portfolio-info p {
  color: var(--light-muted);
}

/* Contact */
.contact-section {
  background: linear-gradient(180deg, #0d1218 0%, #111823 100%);
  color: var(--text);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.contact-copy p {
  color: var(--muted);
}

.contact-details {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

.contact-details a,
.contact-details span {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
}

.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-row label {
  font-weight: 600;
  color: #e8edf4;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #9aa5b3;
}

.form-row select option {
  color: #111;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: #5d8bcf;
  box-shadow: 0 0 0 4px rgba(93, 139, 207, 0.12);
}

.form-status {
  margin-top: 14px;
  min-height: 24px;
  font-weight: 600;
  color: #d8e6fb;
}

/* Footer */
.footer {
  padding: 28px 0;
  background: #080b10;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer p {
  color: var(--muted);
  margin-top: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--white);
}

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 780px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 82px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: #0e141c;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
  }

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

  .services-grid,
  .portfolio-grid,
  .about-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .hero h1 {
    max-width: 100%;
  }

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