:root {
  --bg: #07101a;
  --bg-soft: #0b1622;
  --surface: #102131;
  --surface-2: #173147;
  --light: #f3f7fb;
  --paper: #ffffff;
  --ink: #08131f;
  --muted: #9fb0c0;
  --muted-dark: #5a6a79;
  --line: rgba(255,255,255,.12);
  --line-dark: rgba(17,19,24,.13);
  --accent: #20a7eb;
  --accent-dark: #0876b4;
  --radius: 18px;
  --shadow: 0 28px 70px rgba(0,0,0,.24);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--light);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  background: var(--accent);
  color: var(--ink);
  padding: .75rem 1rem;
  border-radius: 8px;
  font-weight: 800;
}
.skip-link:focus { top: 1rem; }

.container { width: min(calc(100% - 2.4rem), var(--max)); margin-inline: auto; }
.section-dark { background: var(--bg); color: var(--light); }
.section-mid { background: var(--bg-soft); color: var(--light); }
.section-light { background: var(--light); color: var(--ink); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(7,16,26,.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled { border-color: var(--line); background: rgba(7,16,26,.96); }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; letter-spacing: .06em; }
.brand img { width: 42px; height: 42px; }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font-size: 1.06rem; letter-spacing: .24em; }
.brand small { margin-top: .45rem; font-size: .58rem; color: var(--muted); letter-spacing: .17em; }
.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav > a:not(.button) { color: #d9dde4; font-size: .92rem; font-weight: 700; }
.site-nav > a:not(.button):hover { color: var(--accent); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: transparent; padding: 12px; }
.nav-toggle span { display: block; height: 2px; background: white; margin: 5px 0; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .85rem 1.35rem;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 850;
  letter-spacing: .01em;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); background: #59c5fa; }
.button-small { min-height: 42px; padding: .6rem 1rem; font-size: .86rem; }
.button-ghost { background: transparent; color: white; border-color: rgba(255,255,255,.25); }
.button-ghost:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.45); }
.text-link { display: inline-flex; gap: .55rem; align-items: center; font-weight: 850; color: var(--accent); }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }

.hero { position: relative; overflow: hidden; padding-top: 78px; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 25%, rgba(32,167,235,.12), transparent 28%),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  pointer-events: none;
}
.hero-grid { min-height: 720px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 4rem; align-items: center; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 1rem; color: var(--accent); font-size: .76rem; font-weight: 900; letter-spacing: .19em; text-transform: uppercase; }
.hero h1, .section-heading h2, .problem h2, .about h2, .contact h2 {
  margin: 0;
  font-size: clamp(3.3rem, 7vw, 6.8rem);
  line-height: .92;
  letter-spacing: -.065em;
  font-weight: 900;
}
.hero-lead { max-width: 660px; margin: 1.7rem 0 0; font-size: clamp(1.05rem, 1.7vw, 1.32rem); color: #c6cbd3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-note { margin-top: 1.25rem; font-size: .84rem; color: #8f97a3; }

.hero-visual { min-height: 510px; display: grid; place-items: center; }
.visual-frame {
  position: relative;
  width: min(100%, 510px);
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 26px;
  background: linear-gradient(145deg, #161a20, #0d0f13);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.visual-frame::before, .visual-frame::after { content: ""; position: absolute; width: 110px; height: 110px; border: 1px solid rgba(32,167,235,.48); }
.visual-frame::before { top: 25px; right: 25px; border-left: 0; border-bottom: 0; }
.visual-frame::after { left: 25px; bottom: 25px; border-right: 0; border-top: 0; }
.hex-grid {
  position: absolute;
  inset: 0;
  opacity: .2;
  background-image: url("../images/pattern.svg");
  background-size: 120px 104px;
}
.component { position: absolute; border: 1px solid rgba(255,255,255,.27); display: grid; place-items: center; background: rgba(255,255,255,.035); box-shadow: inset 0 0 30px rgba(255,255,255,.035); }
.component span { font-size: .62rem; font-weight: 900; letter-spacing: .16em; color: rgba(255,255,255,.72); }
.component-one { width: 190px; height: 190px; left: 50%; top: 48%; transform: translate(-50%,-50%) rotate(30deg); clip-path: polygon(25% 6.7%,75% 6.7%,100% 50%,75% 93.3%,25% 93.3%,0 50%); border: none; outline: 1px solid rgba(32,167,235,.7); background: rgba(32,167,235,.075); }
.component-one span { transform: rotate(-30deg); color: var(--accent); }
.component-two { width: 110px; height: 110px; border-radius: 50%; left: 16%; top: 18%; }
.component-three { width: 90px; height: 90px; border-radius: 18px; right: 13%; bottom: 16%; transform: rotate(12deg); }
.dimension-line { position: absolute; height: 1px; background: rgba(32,167,235,.55); transform-origin: left center; }
.dimension-line::before, .dimension-line::after { content: ""; position: absolute; width: 8px; height: 8px; border-left: 1px solid var(--accent); top: -4px; }
.dimension-line::before { left: 0; }
.dimension-line::after { right: 0; transform: rotate(180deg); }
.dimension-a { width: 220px; left: 9%; bottom: 26%; transform: rotate(-18deg); }
.dimension-b { width: 160px; right: 5%; top: 27%; transform: rotate(67deg); }
.visual-caption { position: absolute; left: 35px; bottom: 37px; margin: 0; font-size: .72rem; line-height: 1.4; letter-spacing: .15em; color: #a7afb9; }
.visual-caption strong { color: white; font-size: .95rem; }

.trust-bar { position: relative; z-index: 1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid { min-height: 84px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.trust-grid span { padding: 0 1.5rem; text-align: center; color: #cfd4dc; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-right: 1px solid var(--line); }
.trust-grid span:first-child { border-left: 1px solid var(--line); }

.intro, .capabilities, .industries, .projects, .process, .about, .contact { padding: 110px 0; }
.split-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 5rem; align-items: start; }
.section-heading h2, .problem h2, .about h2, .contact h2 { font-size: clamp(2.5rem, 5.3vw, 5rem); line-height: .98; }
.section-heading.max-width { max-width: 850px; margin-bottom: 3rem; }
.section-heading > p:last-child { max-width: 730px; margin: 1.2rem 0 0; color: var(--muted); }
.section-light .section-heading > p:last-child { color: var(--muted-dark); }
.intro-copy { max-width: 620px; font-size: 1.08rem; color: #4f5865; }
.intro-copy p:first-child { margin-top: 0; }

.card-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.capability-grid { grid-template-columns: repeat(3, 1fr); }
.capability-card { min-height: 310px; background: var(--bg-soft); padding: 2.2rem; position: relative; transition: background .25s ease, transform .25s ease; }
.capability-card:hover { background: #181c23; transform: translateY(-4px); z-index: 1; }
.card-number { display: inline-block; color: var(--accent); font-size: .72rem; font-weight: 900; letter-spacing: .15em; }
.capability-card h3 { margin: 5rem 0 .8rem; font-size: 1.45rem; line-height: 1.15; }
.capability-card p { margin: 0; color: var(--muted); }

.problem { padding: 105px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.problem-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 6rem; align-items: center; }
.problem-copy > p:not(.eyebrow) { max-width: 680px; margin: 1.6rem 0; color: #b7bec9; }
.problem-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.problem-list li { display: grid; grid-template-columns: 56px 1fr; align-items: center; min-height: 82px; border-bottom: 1px solid var(--line); color: #eef1f4; font-weight: 750; }
.problem-list span { color: var(--accent); font-size: .7rem; letter-spacing: .15em; }

.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.industry-card { min-height: 220px; padding: 2rem; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); transition: background .2s ease; }
.industry-card:hover { background: white; }
.industry-card h3 { margin: 0 0 1rem; font-size: 1.25rem; }
.industry-card p { margin: 0; color: #5d6673; }

.project-heading { display: grid; grid-template-columns: 1fr .55fr; align-items: end; gap: 4rem; margin-bottom: 3rem; }
.project-heading > p { color: var(--muted); margin: 0; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.project-card { position: relative; min-height: 390px; overflow: hidden; border-radius: var(--radius); background: #0d0f13; box-shadow: 0 14px 32px rgba(0,0,0,.16); }
.project-featured { grid-column: 1 / -1; min-height: 560px; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease, filter .55s ease; }
.project-card:hover img { transform: scale(1.035); filter: brightness(.72); }
.project-overlay { position: absolute; inset: auto 0 0; padding: 5rem 2rem 2rem; background: linear-gradient(transparent, rgba(0,0,0,.86)); }
.project-overlay p { margin: 0 0 .5rem; color: var(--accent); font-size: .67rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.project-overlay h3 { margin: 0 0 .35rem; font-size: clamp(1.45rem, 2.5vw, 2.2rem); line-height: 1.05; }
.project-overlay span { color: #c1c7d0; }

.process-grid { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.process-grid li { min-height: 260px; padding: 1.5rem; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.process-grid span { color: var(--accent-dark); font-size: .7rem; font-weight: 900; letter-spacing: .15em; }
.process-grid h3 { margin: 4.2rem 0 .7rem; font-size: 1.2rem; }
.process-grid p { margin: 0; color: #5f6874; font-size: .95rem; }

.about-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 5rem; align-items: center; }
.about-visual { min-height: 510px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(circle at center, rgba(32,167,235,.16), transparent 55%), #07101a; overflow: hidden; }
.about-visual img { width: 64%; opacity: .9; }
.about-copy > p:not(.eyebrow) { color: #bcc2cb; }
.value-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.value-row span { border: 1px solid var(--line); padding: .5rem .7rem; border-radius: 99px; color: #d7dbe1; font-size: .78rem; }

.contact-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 5rem; align-items: start; }
.contact-copy > p:not(.eyebrow) { max-width: 620px; color: #596270; }
.contact-methods { margin-top: 2.2rem; border-top: 1px solid var(--line-dark); }
.contact-methods a, .contact-methods div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 70px; border-bottom: 1px solid var(--line-dark); }
.contact-methods span { color: #717a87; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-methods strong { text-align: right; }
.contact-methods a:hover strong { color: #0876b4; }

.quote-form { background: white; border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 2rem; box-shadow: 0 28px 70px rgba(26,31,39,.09); }
.quote-form label { display: grid; gap: .45rem; margin-bottom: 1rem; color: #333a44; font-size: .84rem; font-weight: 800; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; border: 1px solid #cfd4db; border-radius: 9px; background: #f8f9fa; color: #111318; padding: .85rem .9rem; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.quote-form textarea { resize: vertical; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { border-color: #168fd0; box-shadow: 0 0 0 3px rgba(32,167,235,.16); }
.form-submit { width: 100%; margin-top: .3rem; }
.form-note { color: #6d7682; font-size: .78rem; text-align: center; margin: .8rem 0 0; }
.form-status { display: none; margin-bottom: 1rem; padding: .8rem 1rem; border-radius: 8px; font-weight: 700; }
.form-status.success { display: block; background: #dff4ff; color: #064e74; }
.form-status.error { display: block; background: #ffe2e2; color: #6d1515; }
.honeypot { position: absolute !important; left: -9999px !important; }

.site-footer { padding: 55px 0; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .7fr 1fr; gap: 3rem; align-items: end; }
.footer-brand { margin-bottom: 1rem; }
.site-footer p { margin: .35rem 0; color: #8f97a2; font-size: .88rem; }
.footer-links { display: grid; gap: .5rem; }
.footer-links a { color: #cbd0d8; }
.footer-links a:hover { color: var(--accent); }
.footer-meta { text-align: right; }

.floating-whatsapp { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 80; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 950; font-size: .72rem; box-shadow: 0 12px 34px rgba(0,0,0,.28); transition: transform .2s ease; }
.floating-whatsapp:hover { transform: translateY(-3px) scale(1.03); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .site-nav { position: absolute; top: 78px; left: 1rem; right: 1rem; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: .8rem; background: #12151a; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .85rem; }
  .nav-toggle { display: block; }
  .hero-grid, .split-grid, .problem-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-grid { padding: 90px 0 70px; }
  .hero-visual { min-height: 430px; }
  .capability-grid, .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .project-heading { grid-template-columns: 1fr; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-meta { text-align: left; grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 1.4rem), var(--max)); }
  .brand strong { font-size: .95rem; }
  .brand small { font-size: .52rem; }
  .hero-grid { min-height: auto; padding-top: 72px; }
  .hero h1 { font-size: clamp(3.15rem, 16vw, 5.1rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 335px; }
  .visual-frame { width: 100%; }
  .component-one { width: 145px; height: 145px; }
  .trust-grid { grid-template-columns: 1fr 1fr; padding: .7rem 0; }
  .trust-grid span { min-height: 56px; display: grid; place-items: center; padding: .5rem; border: 0; border-bottom: 1px solid var(--line); }
  .intro, .capabilities, .industries, .projects, .process, .about, .contact, .problem { padding: 78px 0; }
  .section-heading h2, .problem h2, .about h2, .contact h2 { font-size: clamp(2.35rem, 12vw, 4rem); }
  .capability-grid, .industry-grid, .project-grid, .process-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .project-featured { grid-column: auto; min-height: 420px; }
  .project-card { min-height: 360px; }
  .process-grid li { min-height: 220px; }
  .about-visual { min-height: 340px; }
  .contact-methods a, .contact-methods div { align-items: flex-start; flex-direction: column; justify-content: center; gap: .15rem; }
  .contact-methods strong { text-align: left; }
  .quote-form { padding: 1.2rem; }
  .footer-meta { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
