/* ---------- Reset & Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #050608;
  --bg-alt: #0a0d12;
  --card: #10141b;
  --border: #1e2530;
  --text: #eef1f5;
  --text-dim: #9aa4b2;
  --blue: #2f8fff;
  --blue-light: #6ec3ff;
  --gradient: linear-gradient(135deg, #ffffff 0%, #cfd8e3 40%, #2f8fff 75%, #6ec3ff 100%);
  --font-head: 'Orbitron', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { font-family: var(--font-head); letter-spacing: 0.02em; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.section {
  padding: 90px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 40px;
  max-width: 720px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #04070c;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(47, 143, 255, 0.35);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue-light);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(5, 6, 8, 0.75);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  height: 38px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.92rem;
  font-weight: 500;
}

.main-nav a:hover { color: var(--blue-light); }

.nav-cta {
  padding: 9px 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #04070c !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 190px 0 120px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47,143,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,143,255,0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  max-width: 260px;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 820px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.15;
}

.hero-sub {
  margin-top: 22px;
  max-width: 560px;
  color: var(--text-dim);
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

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

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
}

.service-icon {
  width: 46px;
  height: 46px;
  color: var(--blue-light);
  margin-bottom: 18px;
}

.service-icon svg { width: 100%; height: 100%; }

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

.service-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ---------- Work ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.work-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
}

.work-thumb {
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  position: relative;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Shown until a real screenshot is dropped in (see TODO comment above the markup) */
.work-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-thumb-empty::before {
  content: '';
  width: 40px;
  height: 40px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background-image: linear-gradient(45deg, var(--border) 25%, transparent 25%, transparent 50%, var(--border) 50%, var(--border) 75%, transparent 75%, transparent);
  background-size: 10px 10px;
  opacity: 0.5;
}

.work-thumb-empty img {
  display: none;
}

.work-body {
  padding: 22px 24px 26px;
}

.work-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.work-body p {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.work-tags span {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.work-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-light);
}

.work-link:hover { color: var(--blue); }

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p:not(.eyebrow) {
  color: var(--text-dim);
  margin-top: 16px;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stat {
  border-left: 2px solid var(--blue);
  padding-left: 16px;
}

.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--blue-light);
}

.stat span {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ---------- Contact ---------- */
.contact-inner {
  max-width: 640px;
}

.contact-sub {
  color: var(--text-dim);
  margin-bottom: 36px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.contact-form input,
.contact-form textarea {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.contact-form .btn { width: fit-content; }

.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-status {
  font-size: 0.85rem;
  min-height: 1.2em;
}

.form-status.success { color: #5fd48a; }
.form-status.error { color: #ff6b6b; }
.form-status.sending { color: var(--text-dim); }

.contact-direct {
  margin-top: 28px;
  color: var(--text-dim);
}

.contact-direct a:hover { color: var(--blue-light); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

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

.footer-logo {
  height: 26px;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; }
  .service-grid, .work-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
}
