:root {
  --color-bg: #09090b;
  --color-bg-alt: #121216;
  --color-card: #16161b;
  --color-border: #27272f;
  --color-text: #e9e9ee;
  --color-text-muted: #93939f;
  --color-steel: #d7d9de;
  --color-cyan: #5ad4ff;
  --color-copper: #ff9d52;
  --max-width: 1080px;
  --font-display: "Rajdhani", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

a {
  color: var(--color-cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-steel);
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--color-cyan);
  margin-bottom: 0.75rem;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand:hover {
  text-decoration: none;
}

.brand-emblem {
  height: 34px;
  width: 34px;
  display: block;
  border-radius: 50%;
}

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

.brand-wordmark .name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1rem;
  color: var(--color-text);
}

.brand-wordmark .sub {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.62rem;
  color: var(--color-text-muted);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  position: relative;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--color-text);
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--color-cyan);
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--color-text);
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 18px;
  height: 18px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--color-cyan);
  color: #06181f;
}

.btn-primary:hover {
  background: #7fdfff;
}

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

button.btn {
  cursor: pointer;
}

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

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 1.5rem 5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 700px 420px at 20% 0%, rgba(90, 212, 255, 0.14), transparent 60%),
    radial-gradient(ellipse 700px 420px at 80% 20%, rgba(255, 157, 82, 0.12), transparent 60%);
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.hero-emblem {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  margin: 0 auto 1.75rem;
  display: block;
  box-shadow: 0 0 0 1px var(--color-border), 0 0 60px rgba(90, 212, 255, 0.25);
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  text-transform: uppercase;
  line-height: 1.15;
}

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

.tagline {
  color: var(--color-text-muted);
  font-size: 1.15rem;
  margin: 1.25rem auto 0;
  max-width: 560px;
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- sections ---------- */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--color-border);
}

.hero + section {
  border-top: none;
}

.section-head {
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: 1.9rem;
  text-transform: uppercase;
}

.section-head p {
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

/* ---------- service cards ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-cyan);
  border-radius: 10px;
  padding: 1.75rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.service-card.accent-copper {
  border-top-color: var(--color-copper);
}

.service-card:hover {
  transform: translateY(-3px);
}

.service-card .icon {
  width: 30px;
  height: 30px;
  color: var(--color-cyan);
  margin-bottom: 1rem;
}

.service-card.accent-copper .icon {
  color: var(--color-copper);
}

.service-card h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

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

/* ---------- process ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding-top: 2.5rem;
}

.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.process-step h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  padding-top: 0.5rem;
  border-top: 2px solid var(--color-border);
}

.process-step p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* ---------- about / cta ---------- */

.about-body p {
  color: var(--color-text-muted);
  max-width: 720px;
}

.about-body strong {
  color: var(--color-text);
}

.cta {
  text-align: center;
}

.cta h2 {
  font-size: 1.9rem;
  text-transform: uppercase;
}

.cta p {
  color: var(--color-text-muted);
  margin: 0.75rem auto 2rem;
  max-width: 480px;
}

/* ---------- services.html detail sections ---------- */

.service-detail {
  padding: 3rem 0;
  border-top: 1px solid var(--color-border);
}

.service-detail:first-of-type {
  border-top: none;
}

.service-detail-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.service-detail-head .icon {
  width: 28px;
  height: 28px;
  color: var(--color-cyan);
  flex-shrink: 0;
}

.service-detail.accent-copper .icon {
  color: var(--color-copper);
}

.service-detail h2 {
  font-size: 1.4rem;
  text-transform: uppercase;
}

.service-detail p {
  color: var(--color-text-muted);
  max-width: 700px;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.footer-emblem {
  height: 24px;
  width: 24px;
  border-radius: 50%;
  opacity: 0.85;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
}

.footer-links a,
.footer-link-button {
  color: var(--color-text-muted);
}

.footer-link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.footer-link-button:hover {
  text-decoration: underline;
}

/* ---------- cookie banner ---------- */

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-size: 0.9rem;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  color: var(--color-text-muted);
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .nav.is-open .nav-links {
    max-height: 260px;
  }

  .nav-links a {
    padding: 0.9rem 1.5rem;
    border-top: 1px solid var(--color-border);
  }

  .nav-links a::after {
    display: none;
  }

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

  .process {
    grid-template-columns: 1fr 1fr;
    row-gap: 2rem;
  }
}

@media (max-width: 480px) {
  .process {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions .btn {
    flex: 1;
  }
}

/* ---------- projects ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.project-card {
  display: block;
  color: inherit;
}

.project-card:hover {
  text-decoration: none;
  border-color: var(--color-cyan);
}

.project-card.accent-copper:hover {
  border-color: var(--color-copper);
}

.project-url {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--color-cyan);
}

.project-card.accent-copper .project-url {
  color: var(--color-copper);
}

/* Card that contains its own inline links: the main link's ::after covers
   the card so the whole card stays clickable without nesting <a> tags. */
.project-card:has(.stretched-link) {
  position: relative;
}

.stretched-link:hover {
  text-decoration: none;
}

.stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.project-card .inline-link {
  position: relative;
  z-index: 1;
  text-decoration: underline;
}

.badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.5rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--color-copper);
}

@media (max-width: 720px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- icecalc.html ---------- */

.ad-slot {
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  min-height: 100px;
}

/* AdSense marks the <ins> unfilled when it has no ad to serve; collapse the
   whole slot so it doesn't leave a blank band between sections. */
.ad-slot:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
  display: none;
}

.formula {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  max-width: 720px;
  overflow-x: auto;
  font-size: 0.9rem;
  color: var(--color-steel);
}

.data-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 560px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.data-table th {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--color-cyan);
}

.data-table td {
  color: var(--color-text-muted);
}

.notice {
  margin-top: 2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--color-copper);
}

.about-body > h2 {
  margin-top: 2rem;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.about-body > h2 + p {
  margin-top: 0.5rem;
}
