/* ===== Design tokens ===== */
:root {
  /* Brand: orange #FF9800 + slate-navy #2C4A5E (from the Pixeltree logo) */
  --bg: #0b1a24;
  --bg-alt: #0f2431;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --text: #eef4f7;
  --muted: #9db3bf;
  --brand-orange: #ff9800;
  --brand-orange-deep: #ff6a00;
  --brand-amber: #ffb733;
  --brand-navy: #2c4a5e;
  --brand-teal: #2dd4bf;
  --brand-cyan: #38bdf8;
  --grad-hot: linear-gradient(120deg, #ffb733 0%, #ff9800 45%, #ff6a00 100%);
  --grad-warm: linear-gradient(120deg, #ffb020, #ff6a00);
  --radius: 18px;
  --shadow: 0 20px 60px -20px rgba(255, 152, 0, 0.40);
  --maxw: 1140px;
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: #fff; color: #000; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.grad-text {
  background: var(--grad-hot);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 600;
  color: var(--brand-cyan); margin: 0 0 .9rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: .7rem 1.3rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn-lg { padding: .95rem 1.8rem; font-size: 1.02rem; }
.btn-primary { background: var(--grad-hot); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 26px 70px -18px rgba(255,94,219,.55); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn-light { background: #fff; color: #17092e; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 20px 50px -18px rgba(0,0,0,.5); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid var(--brand-cyan); outline-offset: 2px;
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 7, 22, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(11,7,22,.9); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); }
.brand-logo { height: 40px; width: auto; }
.brand-name { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand-accent { background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-brand .brand-logo { height: 46px; margin-bottom: .3rem; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav a:hover { color: var(--text); }
.header-cta { display: flex; gap: .6rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; gap: .3rem; padding: 1rem 1.25rem 1.5rem; border-top: 1px solid var(--border); background: rgba(11,7,22,.97); }
.mobile-nav a { padding: .7rem 0; color: var(--muted); border-bottom: 1px solid var(--border); }
.mobile-nav a.btn { color: #fff; border: 0; margin-top: .6rem; }

/* ===== Hero ===== */
.hero { position: relative; padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero-inner { position: relative; z-index: 2; max-width: 820px; }
.hero h1 { margin-bottom: 1rem; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2rem 0 1.6rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; color: var(--muted); font-size: .92rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: .35rem; }

.hero-orbs { position: absolute; inset: 0; z-index: 1; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: float 14s ease-in-out infinite; }
.orb-a { width: 460px; height: 460px; background: radial-gradient(circle, #ff9800, transparent 70%); top: -140px; right: -80px; }
.orb-b { width: 420px; height: 420px; background: radial-gradient(circle, #2dd4bf, transparent 70%); top: 120px; left: -160px; animation-delay: -4s; opacity: .40; }
.orb-c { width: 380px; height: 380px; background: radial-gradient(circle, #38bdf8, transparent 70%); bottom: -180px; right: 30%; animation-delay: -8s; opacity: .30; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(0,-30px) scale(1.06); } }

/* ===== Stats ===== */
.stats { padding: 1rem 0 2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat {
  text-align: center; padding: 1.6rem 1rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.stat-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.4rem);
  background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--muted); font-size: .9rem; }

/* ===== Sections ===== */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-lead { color: var(--muted); font-size: 1.08rem; }

/* ===== Service cards ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.card {
  position: relative; padding: 1.8rem 1.5rem 1.6rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent);
}
.card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.22); background: var(--surface-2); }
.card-icon {
  width: 54px; height: 54px; display: grid; place-items: center; font-size: 1.6rem;
  border-radius: 14px; background: var(--accent); margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .96rem; }
.card-link { display: inline-block; margin-top: .4rem; font-weight: 600; font-size: .92rem; color: var(--brand-orange); }
.card-link:hover { color: var(--brand-amber); }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.about-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.about-list li {
  padding: 1.1rem 1.3rem; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--border); border-left: 3px solid var(--brand-orange);
}
.about-list strong { color: var(--text); }
.about-list li:nth-child(2) { border-left-color: var(--brand-teal); }
.about-list li:nth-child(3) { border-left-color: var(--brand-amber); }
.about-list li:nth-child(4) { border-left-color: var(--brand-cyan); }

/* ===== Application development spotlight ===== */
.appdev { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.appdev-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.appdev-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.appdev-list li {
  display: flex; gap: .8rem; align-items: flex-start; padding: 1.05rem 1.15rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  transition: transform .2s ease, border-color .2s ease;
}
.appdev-list li:hover { transform: translateY(-3px); border-color: rgba(255,152,0,.4); }
.appdev-list li > span { font-size: 1.35rem; line-height: 1.2; }
.appdev-list strong { display: block; margin-bottom: .15rem; font-size: .98rem; }
.appdev-list p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.45; }

.appdev-steps { list-style: none; margin: 3.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.appdev-steps li { position: relative; padding: 1.5rem 1.4rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.appdev-steps li::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; border-radius: var(--radius) var(--radius) 0 0; background: var(--grad-hot); }
.step-n { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; margin-bottom: .3rem;
  background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.appdev-steps h3 { margin-bottom: .35rem; }
.appdev-steps p { margin: 0; color: var(--muted); font-size: .9rem; }

/* ===== Why / features ===== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.feature { padding: 1.6rem 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.feature-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--grad-hot); margin-bottom: 1rem; }
.feature h3 { margin-bottom: .4rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ===== CTA band ===== */
.cta-band { padding: clamp(3rem, 6vw, 4.5rem) 0; background: var(--grad-hot); position: relative; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { color: rgba(255,255,255,.9); margin: 0; }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.contact-details { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1.2rem; }
.contact-details li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-details .ci { font-size: 1.3rem; }
.contact-details a:hover { color: var(--brand-orange); }

.contact-form { padding: 1.8rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.field { display: flex; flex-direction: column; margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: .85rem; font-weight: 600; margin-bottom: .4rem; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--text);
  background: rgba(0,0,0,.25); border: 1px solid var(--border); border-radius: 10px; padding: .7rem .85rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-orange); box-shadow: 0 0 0 3px rgba(255,152,0,.25); outline: none; }
.field textarea { resize: vertical; }
.field select option { color: #000; }
.form-note { margin: .8rem 0 0; font-size: .92rem; font-weight: 600; color: var(--brand-cyan); }

/* ===== Footer ===== */
.site-footer { background: #08040f; border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.footer-brand p { color: var(--muted); max-width: 340px; margin-top: .6rem; font-size: .95rem; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: .6rem; }
.footer-nav a, .footer-contact a, .footer-contact span { color: var(--muted); font-size: .95rem; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; color: var(--muted); font-size: .88rem; flex-wrap: wrap; gap: .5rem; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .appdev { grid-template-columns: 1fr; gap: 2rem; }
  .appdev-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: none; }
  .mobile-nav:not([hidden]) { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards, .feature-grid { grid-template-columns: 1fr; }
  .appdev-list { grid-template-columns: 1fr; }
  .appdev-steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
