/* Skyline Coder — main stylesheet */

:root {
  --bg: #0a0f1c;
  --bg-alt: #0d1424;
  --surface: #121a2e;
  --surface-2: #182238;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eaf0f8;
  --muted: #93a1b8;
  --primary: #3ea6ff;
  --primary-2: #22d3c6;
  --accent-soft: rgba(62, 166, 255, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.55);
  --container: 1180px;
}

* { box-sizing: border-box; }
html, body, div, span, h1, h2, h3, h4, p, a, ul, li, form, input, textarea, select, button, img, section, header, footer, nav, small, strong {
  margin: 0; padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.3px; line-height: 1.2; }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: 19px; }
p { color: var(--text); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 9px;
  padding-bottom: 9px;
}

/* ---------- Header / Nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 28, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #04101f;
  font-weight: 800;
  font-size: 14px;
}
.menu {
  display: flex;
  align-items: center;
  gap: 26px;
}
.menu a {
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.2s ease;
  white-space: nowrap;
}
.menu a:hover { color: var(--text); }
.menu a.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #04101f;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
}
.menu a.nav-cta:hover { color: #04101f; opacity: 0.92; }
.hamb {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 20px;
  align-items: center;
  justify-content: center;
  color: var(--text);
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #04101f;
  box-shadow: 0 12px 30px -10px rgba(62, 166, 255, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(62, 166, 255, 0.7); }
.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 76px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -160px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(62, 166, 255, 0.18), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--primary-2);
  background: var(--accent-soft);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(32px, 4.5vw, 54px);
  letter-spacing: -0.8px;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  margin-top: 22px;
  color: var(--muted);
  font-size: 17px;
  max-width: 520px;
}
.actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat strong {
  display: block;
  font-size: 21px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: 12.5px; color: var(--muted); }

.hero-card { position: relative; }
.hero-img {
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.code-window {
  position: absolute;
  bottom: -32px;
  left: -28px;
  max-width: 290px;
  background: #0d1424;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  color: #c7d4e8;
  line-height: 1.8;
  box-shadow: 0 28px 55px -14px rgba(0, 0, 0, 0.65);
}
.code-window .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 16px 0 #febc2e, 32px 0 #28c840;
  margin-right: 16px;
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.kicker {
  color: var(--primary-2);
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 12px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head h2 { max-width: 560px; }
.section-head > p { max-width: 380px; color: var(--muted); font-size: 15px; }

.page-hero {
  padding: 68px 0 58px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}
.page-hero h1 { margin-top: 10px; font-size: clamp(30px, 4vw, 44px); }
.page-hero p { margin-top: 16px; color: var(--muted); max-width: 640px; font-size: 16px; }

/* ---------- Grid & Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(62, 166, 255, 0.35);
  box-shadow: var(--shadow);
}
.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--primary-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }
.service-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--primary-2);
  font-weight: 700;
  font-size: 14px;
}
.service-link:hover { text-decoration: underline; }

.card.project { padding: 0; overflow: hidden; }
.card.project img { width: 100%; height: 220px; object-fit: cover; }
.card.project .inside { padding: 24px; }
.card.project:hover { transform: translateY(-6px); }
.tags { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--primary-2);
  padding: 5px 10px;
  border-radius: 999px;
}

/* ---------- Split / image panel ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.image-panel img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

/* ---------- Checklist ---------- */
.checklist { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.check { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #dbe4f1; }
.check b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--primary-2);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

/* ---------- CTA banner ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(62, 166, 255, 0.18), transparent 60%);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { margin-top: 6px; }
.cta p { color: var(--muted); margin-top: 10px; max-width: 420px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-top: 64px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-grid p { color: var(--muted); font-size: 14px; margin-top: 14px; }
.footer h4 {
  font-size: 13.5px;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text);
  font-weight: 700;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--muted); font-size: 14.5px; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--primary-2); }
.copyright {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding: 22px 24px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- WhatsApp floating button ---------- */
.wa {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 32px -8px rgba(37, 211, 102, 0.65);
  z-index: 200;
  transition: transform 0.2s ease;
}
.wa:hover { transform: scale(1.08); }
.wa svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 30px; align-items: start; }
.contact-item { margin-top: 20px; font-size: 15px; }
.contact-item small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}
.contact-item a { color: var(--primary-2); font-weight: 700; }
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input, select, textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 14.5px;
  transition: border-color 0.2s ease;
}
.input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); }
textarea { min-height: 130px; resize: vertical; }
.notice {
  font-size: 12.5px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 10px;
}
.mapbox { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); height: 360px; }
.mapbox iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.2) invert(0.92) contrast(0.9); }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; }
.legal .notice { display: inline-block; margin-bottom: 30px; }
.legal h2 { margin-top: 36px; margin-bottom: 12px; font-size: 20px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p { color: var(--muted); font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .split > .image-panel { order: -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .code-window { position: static; margin-top: 24px; max-width: 100%; }
  .hero-img { height: 340px; }
}

@media (max-width: 760px) {
  .hamb { display: flex; }
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 24px;
    box-shadow: var(--shadow);
  }
  .menu.open { display: flex; }
  .menu a.nav-cta { width: 100%; text-align: center; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .cta { flex-direction: column; align-items: flex-start; }
  .copyright { flex-direction: column; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
}
