:root {
  --bg: #07101d;
  --bg-soft: #0b1625;
  --card: rgba(16, 30, 48, 0.72);
  --text: #f3f7fb;
  --muted: #a9b6c7;
  --line: rgba(255,255,255,.10);
  --accent: #d4b966;
  --accent-2: #a77b36;
  --max: 1160px;
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

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

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: rgba(7,16,29,.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: .3s ease;
}

.site-header.scrolled { border-color: var(--line); }

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand { display: inline-flex; flex-direction: column; line-height: 1; }

.brand-mark {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.brand-mark span, .about-logo span { color: var(--accent); }

.brand-sub {
  color: var(--muted);
  font-size: .55rem;
  letter-spacing: .35em;
  margin-top: 6px;
  margin-left: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav > a {
  color: #c5cfdb;
  font-size: .86rem;
  font-weight: 600;
  transition: color .2s ease;
}

.main-nav > a:hover { color: var(--accent); }

.lang-switch {
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
  border-radius: 999px;
  padding: 7px 13px;
  font: inherit;
  font-size: .75rem;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text);
  margin: 5px;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 35%, rgba(212,185,102,.12), transparent 30%),
    radial-gradient(circle at 20% 80%, rgba(167,123,54,.10), transparent 28%),
    var(--bg);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 80px;
  padding-top: 80px;
}

.eyebrow {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  margin-bottom: 20px;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.8rem, 6vw, 5.3rem);
  line-height: 1.03;
  letter-spacing: -.045em;
}

.hero-text {
  max-width: 670px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 23px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .88rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #03121d;
  box-shadow: 0 10px 30px rgba(212,185,102,.16);
}

.btn-primary:hover { box-shadow: 0 14px 38px rgba(212,185,102,.25); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

.code-card {
  width: min(100%, 490px);
  margin-inline: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5,13,24,.76);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  transform: perspective(900px) rotateY(-8deg) rotateX(3deg);
}

.window-bar { display: flex; gap: 7px; margin-bottom: 28px; }
.window-bar span { width: 9px; height: 9px; border-radius: 50%; background: #64748b; }

.code-line {
  color: #d5dfeb;
  font-family: Consolas, "Courier New", monospace;
  font-size: .84rem;
  line-height: 2.1;
}

.code-line i {
  display: inline-block;
  width: 28px;
  color: #46566b;
  font-style: normal;
  user-select: none;
}

.code-line b { color: #a77b36; }
.code-line em { color: #d4b966; font-style: normal; }
.indent { padding-left: 25px; }

.code-status {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: #8292a7;
  font-size: .72rem;
}

.code-status span {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #58e6a8;
  margin-right: 7px;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 24px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 20px;
  transform: translateX(-50%);
}

.scroll-cue span {
  display: block;
  width: 3px;
  height: 7px;
  margin: 7px auto;
  border-radius: 3px;
  background: var(--accent);
  animation: scroll 1.7s infinite;
}

@keyframes scroll { 50% { transform: translateY(10px); opacity: .35; } }

.section { padding: 120px 0; }

.section-heading { max-width: 720px; margin-bottom: 58px; }

.section h2, .contact-section h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.section-heading > p:last-child {
  color: var(--muted);
  margin-top: 20px;
  max-width: 650px;
}

.services {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  position: relative;
  min-height: 330px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
}

.service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(212,185,102,.35);
}

.service-number { color: #64748b; font-size: .75rem; font-weight: 700; }
.service-icon { margin: 38px 0 24px; color: var(--accent); font-size: 2rem; font-weight: 700; }
.service-card h3 { font-size: 1.15rem; line-height: 1.3; }
.service-card p { color: var(--muted); font-size: .88rem; margin-top: 13px; }
.service-line { position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--accent); transition: width .35s ease; }
.service-card:hover .service-line { width: 100%; }

.about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 100px;
  align-items: center;
}

.about-box {
  position: relative;
  aspect-ratio: 1;
  max-width: 450px;
  display: grid;
  place-items: center;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,185,102,.09), transparent 60%);
}

.about-logo {
  position: relative;
  z-index: 2;
  font-size: clamp(2.3rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: .06em;
}

.about-caption {
  position: absolute;
  bottom: 25%;
  color: var(--muted);
  font-size: .65rem;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.about-orbit {
  position: absolute;
  border: 1px solid rgba(212,185,102,.16);
  border-radius: 50%;
  animation: orbit 12s linear infinite;
}

.orbit-1 { inset: 10%; }
.orbit-2 { inset: 23%; animation-duration: 17s; animation-direction: reverse; }
.orbit-3 { inset: 36%; animation-duration: 22s; }

@keyframes orbit { to { transform: rotate(360deg); } }

.about-copy > p:not(.eyebrow) {
  color: var(--muted);
  margin-top: 22px;
  max-width: 650px;
}

.text-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--accent);
  font-weight: 700;
  font-size: .9rem;
}

.why-us {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.why-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 35px;
  background: var(--bg-soft);
}

.why-item > span { color: var(--accent); font-size: .75rem; font-weight: 700; }
.why-item h3 { font-size: 1.05rem; }
.why-item p { color: var(--muted); font-size: .88rem; margin-top: 8px; }

.contact-section {
  padding: 120px 0;
  background:
    radial-gradient(circle at 85% 50%, rgba(212,185,102,.12), transparent 30%),
    var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 100px;
  align-items: center;
}

.contact-copy > p:last-child {
  color: var(--muted);
  margin-top: 22px;
  max-width: 530px;
}

.contact-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11,22,37,.75);
}

.contact-row {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.contact-label {
  display: block;
  color: #718096;
  font-size: .66rem;
  letter-spacing: .18em;
  margin-bottom: 5px;
}

.contact-row strong { font-size: .96rem; word-break: break-word; }
.contact-btn { width: 100%; margin-top: 25px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 35px 0;
  background: #050c15;
}

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

.footer-brand { font-size: 1.1rem; }
.footer-wrap p { color: #66778d; font-size: .75rem; margin-top: 5px; }
.footer-right { display: flex; gap: 25px; color: #66778d; font-size: .72rem; }
.footer-right a { color: var(--accent); }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

@media (max-width: 950px) {
  .hero-content, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 55px; }
  .hero { padding: 110px 0 80px; }
  .hero-visual { display: none; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .about-box { max-width: 360px; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .nav-wrap { min-height: 72px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 72px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(7,16,29,.97);
  }
  .main-nav.open { display: flex; }
  .main-nav > a { padding: 13px 12px; }
  .lang-switch { align-self: flex-start; margin: 8px 12px 10px; }
  .hero h1 { font-size: clamp(2.5rem, 13vw, 4rem); }
  .hero-text { font-size: .95rem; }
  .section, .contact-section { padding: 85px 0; }
  .service-grid, .why-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 285px; }
  .why-item { padding: 27px 22px; }
  .contact-grid { gap: 40px; }
  .footer-wrap { align-items: flex-start; flex-direction: column; }
  .footer-right { flex-direction: column; gap: 8px; }
}


/* ===== Version 2 enhancements ===== */
.hero-trust {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: rgba(5,12,21,.48);
  backdrop-filter: blur(12px);
}
.hero-trust-inner {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  color: #7f90a5;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.hero-trust-inner span:not(:first-child) { color: #aebbc9; }
.hero-trust-inner span:nth-child(2),
.hero-trust-inner span:nth-child(4),
.hero-trust-inner span:nth-child(6) { color: var(--accent); }

.process {
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.process-card {
  position: relative;
  padding: 30px;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(17,31,49,.72), rgba(8,17,29,.72));
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
}
.process-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212,185,102,.35);
}
.process-card > span {
  color: var(--accent);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
}
.process-card h3 {
  margin-top: 55px;
  font-size: 1.25rem;
}
.process-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: .86rem;
}
.process-card::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  right: -45px;
  bottom: -45px;
  border: 1px solid rgba(212,185,102,.12);
  border-radius: 50%;
}
.logo-fallback { white-space: nowrap; }

@media (max-width: 950px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .hero-trust { position: relative; }
  .hero-trust-inner { padding: 14px 0; justify-content: flex-start; gap: 8px; }
  .hero { min-height: auto; }
  .process-grid { grid-template-columns: 1fr; }
}

.main-nav > a { position: relative; }
.main-nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}
.main-nav > a:hover::after { transform: scaleX(1); }

/* Original AL.TO artwork, with its native background preserved. */
.brand { flex-shrink: 0; }
.brand-logo, .footer-logo { display: block; width: 172px; height: auto; padding: 7px 9px; background: #000; border-radius: 5px; }
.footer-logo { width: 180px; }
.about-logo { width: 76%; padding: 18px; background: #fff; border-radius: 14px; line-height: 0; box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.about-logo img { display: block; width: 100%; height: auto; }
@media (max-width: 600px) {
  .brand-logo { width: 145px; }
  .about-logo { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Transparent gold logo blends with both navigation and footer backgrounds. */
.brand-logo, .footer-logo { background: transparent; }

/* Pure black blends into the surrounding dark surface, preserving original artwork. */
.brand-logo, .footer-logo { background: transparent; mix-blend-mode: screen; }
