/* =========================
   VARIABLES
========================= */
:root {
  --bg-main: #0b111a;
  --bg-deep: #070c13;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-strong: rgba(255, 255, 255, 0.06);
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --text-main: #e6edf6;
  --text-muted: #9aa6b2;
  --border-soft: rgba(148, 163, 184, 0.18);
  --shadow-soft: 0 20px 60px rgba(2, 6, 23, 0.55);
}

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

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(14, 165, 233, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-main) 45%, var(--bg-deep) 100%);
  color: var(--text-main);
  line-height: 1.65;
  letter-spacing: 0.01em;
}

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

a {
  color: inherit;
}

/* =========================
   LAYOUT
========================= */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px;
}

.section {
  padding: 96px 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 8px 12px;
  background: #0b1320;
  color: #ffffff;
  border-radius: 6px;
  z-index: 999;
}

.skip-link:focus {
  left: 16px;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* =========================
   HEADER
========================= */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 12, 19, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px 24px;
}

/* =========================
   LOGO
========================= */
.logo {
  display: block;
}

.logo a {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.logo a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 8px;
}

.logo img {
  height: 78px;
  width: auto;
  display: block;
  filter: none;
  box-shadow: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo img[src$=".svg"] {
  opacity: 1;
  mix-blend-mode: normal;
  -webkit-mask-image: none;
  mask-image: none;
}

.logo img:hover {
  transform: translateY(-1px);
  opacity: 1;
}

/* =========================
   NAV
========================= */
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

header nav a {
  position: relative;
  color: #b4d2ff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
}

header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width 0.25s ease;
}

header nav a:hover,
header nav a[aria-current="page"] {
  color: #ffffff;
}

header nav a:hover::after,
header nav a[aria-current="page"]::after {
  width: 100%;
}

/* =========================
   HERO
========================= */
.hero {
  padding: 120px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.hero-text {
  animation: fade-up 0.8s ease both;
}

.hero h1 {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 32px;
}

/* =========================
   CTA
========================= */
.cta-soft {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 48px;
}

.cta-soft h2 {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.cta-soft p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.cta-primary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: 0 14px 40px rgba(56, 189, 248, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(56, 189, 248, 0.5);
}

.cta-secondary {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.05);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cta-secondary:hover {
  background: rgba(56, 189, 248, 0.12);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
  transform: translateY(-1px);
}

/* =========================
   HERO IMAGE
========================= */
.hero-image {
  position: relative;
  padding: 14px;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.12), rgba(2, 6, 23, 0.2));
  box-shadow: var(--shadow-soft);
  animation: fade-up 0.9s ease 0.1s both;
}

.hero-image img {
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.18);
}

/* =========================
   ABOUT / SERVICES
========================= */
.about-short h2,
.services-preview h2,
.services h2,
.about h2,
.contact-card h2 {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-size: 2.3rem;
  margin-bottom: 1.2rem;
}

.about-short p {
  max-width: 760px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.services-preview {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.08), rgba(2, 6, 23, 0.1));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 1.8rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  animation: fade-up 0.7s ease both;
}

.service-card:nth-child(2) {
  animation-delay: 0.05s;
}

.service-card:nth-child(3) {
  animation-delay: 0.1s;
}

.service-card:nth-child(4) {
  animation-delay: 0.15s;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(120, 180, 255, 0.45);
  background: var(--bg-card-strong);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.service-card p {
  opacity: 0.85;
  line-height: 1.6;
}

/* =========================
   ABOUT PAGE
========================= */
.about-lead {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 760px;
}

.about-content {
  max-width: 760px;
}

.about-text p {
  margin-bottom: 1.1rem;
  line-height: 1.7;
  opacity: 0.85;
}

.about-claim {
  margin-top: 1.5rem;
  font-weight: 600;
  opacity: 1;
}

/* =========================
   CONTACT
========================= */
.content h1 {
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.content p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  margin-top: 32px;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.form-field label {
  font-weight: 600;
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.6);
  padding: 12px 14px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(56, 189, 248, 0.6);
  border-color: rgba(56, 189, 248, 0.6);
}

.form-note {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 28px;
  height: fit-content;
}

.contact-card p {
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  margin-top: 120px;
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

@media (max-width: 900px) {
  header .container {
    flex-direction: column;
    gap: 16px;
  }

  .logo img {
    height: 64px;
  }

  header nav {
    justify-content: center;
    gap: 16px;
  }

  .hero {
    padding: 80px 0 60px;
  }

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

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 600px) {
  header .container {
    gap: 12px;
  }

  .logo img {
    height: 56px;
  }

  header nav {
    gap: 12px;
    font-size: 0.95rem;
  }

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

  .container {
    padding: 28px 20px;
  }

  .cta-primary,
  .cta-secondary {
    width: 100%;
    text-align: center;
  }

  .services-preview {
    background: transparent;
    border-top: 0;
    border-bottom: 0;
  }
}
