:root {
  --ink: #071325;
  --ink-2: #0b1b35;
  --ink-3: #12284a;
  --paper: #f7f9fd;
  --white: #ffffff;
  --text: #15233a;
  --muted: #667289;
  --line: #dbe2ee;
  --blue: #3977ff;
  --cyan: #7dcfff;
  --violet: #a989ff;
  --green: #2bb889;
  --sand: #f6d494;
  --radius-lg: 32px;
  --radius-md: 20px;
  --shadow: 0 28px 80px rgba(7, 19, 37, .14);
  --shell: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

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

button, a { -webkit-tap-highlight-color: transparent; }

.shell { width: var(--shell); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 20px; top: -80px; z-index: 100;
  background: #fff; color: var(--ink); padding: 12px 18px; border-radius: 10px;
}
.skip-link:focus { top: 18px; }

.site-header {
  position: absolute; inset: 0 0 auto; z-index: 20;
  height: 100px; color: #fff;
}
.header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.13);
}
.brand img { width: 138px; height: 62px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  color: rgba(255,255,255,.78); font-size: .92rem; font-weight: 600;
  transition: color .2s ease;
}
.main-nav a:hover, .main-nav a:focus-visible { color: #fff; }
.menu-toggle { display: none; }

.hero {
  position: relative; min-height: 900px; padding: 180px 0 70px;
  color: #fff; background:
    radial-gradient(circle at 71% 28%, rgba(57,119,255,.2), transparent 24%),
    radial-gradient(circle at 82% 57%, rgba(169,137,255,.12), transparent 22%),
    linear-gradient(135deg, #071325 0%, #0b1a33 58%, #101f42 100%);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, transparent 92%);
}
.hero-glow {
  position: absolute; width: 640px; height: 640px; right: -280px; top: 100px;
  border: 1px solid rgba(125,207,255,.18); border-radius: 50%;
  box-shadow: 0 0 0 110px rgba(125,207,255,.025), 0 0 0 220px rgba(125,207,255,.018);
}
.hero-grid {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr;
  gap: 58px; align-items: center;
}
.eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 24px;
  color: var(--blue); font-size: .78rem; line-height: 1; font-weight: 800;
  letter-spacing: .18em;
}
.eyebrow span { width: 28px; height: 2px; background: currentColor; }
.hero .eyebrow { color: var(--cyan); }
.hero h1 {
  margin: 0; max-width: 760px; font-size: clamp(3.5rem, 6.2vw, 6.4rem);
  line-height: .95; letter-spacing: -.06em; font-weight: 720;
}
.hero h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.66); }
.hero-text {
  max-width: 640px; margin: 34px 0 0; color: rgba(255,255,255,.7);
  font-size: 1.16rem; line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; margin-top: 40px; }
.button {
  min-height: 54px; padding: 0 24px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  font-weight: 700; font-size: .95rem; transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 16px 34px rgba(57,119,255,.3); }
.button-ghost { border: 1px solid rgba(255,255,255,.22); color: #fff; background: rgba(255,255,255,.04); }

.system-visual { position: relative; min-height: 500px; }
.core {
  position: absolute; left: 50%; top: 50%; width: 182px; height: 132px;
  transform: translate(-50%,-50%); border-radius: 34px;
  display: grid; place-items: center; background: rgba(8,22,45,.82);
  border: 1px solid rgba(125,207,255,.44);
  box-shadow: 0 0 54px rgba(125,207,255,.22), inset 0 0 30px rgba(125,207,255,.06);
  backdrop-filter: blur(16px);
}
.core img { width: 150px; }
.orbit { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(125,207,255,.2); border-radius: 50%; transform: translate(-50%,-50%); }
.orbit-one { width: 370px; height: 370px; }
.orbit-two { width: 500px; height: 500px; border-style: dashed; opacity: .5; }
.node {
  position: absolute; width: 160px; min-height: 84px; padding: 14px 15px;
  border: 1px solid rgba(255,255,255,.15); border-radius: 18px;
  background: rgba(9,25,52,.78); backdrop-filter: blur(12px);
  box-shadow: 0 20px 42px rgba(0,0,0,.2);
}
.node strong, .node small { display: block; margin-left: 34px; }
.node strong { font-size: .86rem; }
.node small { margin-top: 3px; color: rgba(255,255,255,.54); font-size: .72rem; }
.node-icon { float: left; color: var(--cyan); font-size: 1.25rem; }
.node-a { left: 0; top: 23%; }
.node-b { right: -3%; top: 18%; }
.node-c { right: 2%; bottom: 14%; }
.pulse { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 8px rgba(125,207,255,.08); }
.pulse-a { left: 20%; bottom: 18%; }
.pulse-b { right: 28%; top: 5%; background: var(--violet); }

.proof-strip {
  position: relative; z-index: 2; margin-top: 100px; display: grid;
  grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.14);
}
.proof-strip > div { padding: 27px 26px 0 0; display: flex; flex-direction: column; gap: 4px; }
.proof-strip strong { font-size: 1.06rem; color: #fff; }
.proof-strip span { color: rgba(255,255,255,.48); font-size: .86rem; }

.section { padding: 118px 0; }
.section-heading {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px;
  align-items: end; margin-bottom: 58px;
}
.section-heading h2, .method h2 {
  margin: 0; font-size: clamp(2.6rem, 4.4vw, 4.7rem);
  letter-spacing: -.055em; line-height: 1.03;
}
.section-heading > p {
  margin: 0 0 8px; color: var(--muted); font-size: 1.04rem; line-height: 1.8;
}
.section-heading.compact { grid-template-columns: 1fr; }

.projects { background: var(--paper); }
.project-card {
  min-height: 670px; margin-top: 30px; border-radius: var(--radius-lg);
  overflow: hidden; display: grid; grid-template-columns: .9fr 1.1fr;
  box-shadow: var(--shadow);
}
.project-card + .project-card { margin-top: 38px; }
.project-content { padding: 64px 58px; background: #fff; }
.project-number { color: var(--muted); font-size: .72rem; letter-spacing: .16em; font-weight: 800; }
.project-content h3 { margin: 14px 0 14px; font-size: clamp(3rem, 5vw, 5.2rem); letter-spacing: -.06em; line-height: 1; }
.project-lead { margin: 0 0 24px; max-width: 510px; font-size: 1.22rem; line-height: 1.5; font-weight: 650; }
.project-content > p:not(.project-lead) { color: var(--muted); max-width: 540px; }
.feature-list { margin: 28px 0; padding: 0; list-style: none; }
.feature-list li { padding: 10px 0 10px 26px; position: relative; border-bottom: 1px solid var(--line); font-size: .94rem; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
.project-green .feature-list li::before { color: var(--green); }
.tech-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.tech-row span { padding: 7px 12px; border-radius: 999px; background: #edf2fb; color: #43516b; font-size: .72rem; font-weight: 800; letter-spacing: .08em; }

.project-mark { width: 64px; height: 50px; margin-top: 45px; position: relative; }
.truck-mark .truck-body { position: absolute; left: 2px; top: 8px; width: 36px; height: 22px; border: 3px solid var(--blue); border-radius: 4px; }
.truck-mark .truck-cab { position: absolute; left: 38px; top: 15px; width: 23px; height: 15px; border: 3px solid var(--blue); border-left: 0; border-radius: 0 5px 3px 0; }
.truck-mark i { position: absolute; top: 35px; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.truck-mark i:nth-of-type(1) { left: 12px; }
.truck-mark i:nth-of-type(2) { left: 47px; }
.teresita-logo { width: 94px; height: 94px; object-fit: contain; margin-top: 34px; border-radius: 22px; background: #fff7e4; }

.project-preview { position: relative; padding: 70px 42px; display: grid; place-items: center; overflow: hidden; }
.project-blue .project-preview { background: linear-gradient(145deg, #0c1f3d, #173867); }
.project-green .project-preview { background: linear-gradient(145deg, #183f32, #2f7056); }
.project-preview::before {
  content: ""; position: absolute; inset: 0; opacity: .28;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 44px 44px;
}
.preview-window, .pos-window { position: relative; z-index: 2; width: min(540px, 100%); background: #f8faff; border-radius: 18px; box-shadow: 0 36px 70px rgba(0,0,0,.3); overflow: hidden; transform: rotate(-1.5deg); }
.preview-top { height: 44px; display: flex; align-items: center; gap: 7px; padding: 0 15px; color: #55647b; font-size: .65rem; }
.preview-top span { width: 7px; height: 7px; border-radius: 50%; background: #d1d8e4; }
.preview-top b { margin-left: auto; letter-spacing: .12em; }
.preview-layout { height: 320px; display: grid; grid-template-columns: 84px 1fr; }
.preview-layout aside { background: #0d1f3b; padding: 22px 18px; }
.mini-logo { height: 27px; border: 1px solid rgba(255,255,255,.45); border-radius: 7px; margin-bottom: 34px; }
.preview-layout aside i { display: block; height: 8px; margin: 22px 0; border-radius: 3px; background: rgba(255,255,255,.18); }
.preview-layout aside i.active { background: var(--blue); }
.preview-main { padding: 28px; color: var(--ink); }
.preview-main small { color: var(--blue); font-weight: 800; letter-spacing: .12em; }
.preview-main h4 { margin: 7px 0 24px; font-size: 1.7rem; }
.metric-row { display: flex; gap: 12px; }
.metric-row b { flex: 1; padding: 16px 12px; border-radius: 10px; color: var(--blue); background: #eaf1ff; font-size: 1.08rem; }
.chart { height: 105px; margin-top: 22px; display: flex; align-items: end; gap: 12px; border-bottom: 1px solid #dce3ef; }
.chart span { flex: 1; border-radius: 5px 5px 0 0; background: linear-gradient(var(--cyan), var(--blue)); }
.table-lines i { display: block; height: 8px; margin-top: 13px; border-radius: 4px; background: #e2e7f0; }
.floating-ticket {
  position: absolute; z-index: 3; right: 17px; bottom: 40px; width: 190px;
  padding: 18px; border-radius: 16px; background: rgba(255,255,255,.95); box-shadow: 0 18px 50px rgba(0,0,0,.22);
}
.floating-ticket > * { display: block; }
.floating-ticket small { color: var(--blue); font-weight: 800; letter-spacing: .12em; }
.floating-ticket strong { margin: 6px 0; color: var(--ink); font-size: 1.45rem; }
.floating-ticket span { color: var(--muted); font-size: .72rem; }

.pos-window { transform: rotate(1.5deg); background: #fffdf6; }
.pos-header { height: 64px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; color: #fff; background: #194b39; }
.pos-header b { letter-spacing: .1em; }
.pos-header span { font-size: .8rem; opacity: .75; }
.pos-body { min-height: 330px; display: grid; grid-template-columns: 1fr 160px; gap: 16px; padding: 20px; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.product-grid i { padding: 10px; border-radius: 12px; background: #fff; box-shadow: 0 5px 18px rgba(25,75,57,.08); font-style: normal; }
.product-grid i > * { display: block; }
.product-grid i span { height: 64px; margin-bottom: 8px; border-radius: 8px; background: linear-gradient(135deg, #f6d494, #e9b960); }
.product-grid i:nth-child(2) span, .product-grid i:nth-child(4) span { background: linear-gradient(135deg, #cddfbc, #78a978); }
.product-grid b { font-size: .74rem; color: #234236; }
.product-grid small { color: #61756d; font-size: .68rem; }
.order-panel { padding: 14px; border-radius: 12px; background: #f6d494; color: #194b39; }
.order-panel > small { font-weight: 800; font-size: .62rem; letter-spacing: .1em; }
.order-panel em { display: block; height: 7px; margin-top: 17px; border-radius: 4px; background: rgba(25,75,57,.17); }
.order-panel > div { margin-top: 46px; padding-top: 13px; border-top: 1px solid rgba(25,75,57,.25); }
.order-panel > div span, .order-panel > div strong { display: block; }
.order-panel button { width: 100%; height: 36px; margin-top: 16px; border: 0; border-radius: 8px; color: #fff; background: #194b39; font-weight: 700; }
.stock-badge { position: absolute; z-index: 3; left: 20px; bottom: 42px; padding: 14px 18px; border-radius: 14px; background: #fff; box-shadow: 0 18px 45px rgba(0,0,0,.18); }
.stock-badge span, .stock-badge strong { display: block; }
.stock-badge span { color: var(--muted); font-size: .7rem; }
.stock-badge strong { color: var(--green); }

.capabilities { color: #fff; background: var(--ink); }
.capabilities .eyebrow { color: var(--cyan); }
.capability-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid rgba(255,255,255,.16); }
.capability-grid article { position: relative; min-height: 340px; padding: 42px 38px; border-right: 1px solid rgba(255,255,255,.16); }
.capability-grid article:last-child { border-right: 0; }
.cap-index { color: rgba(255,255,255,.35); font-size: .72rem; letter-spacing: .12em; }
.cap-icon { margin-top: 64px; color: var(--cyan); font-size: 2rem; }
.capability-grid h3 { margin: 20px 0 14px; font-size: 1.45rem; }
.capability-grid p { color: rgba(255,255,255,.56); line-height: 1.75; }

.method { background: #fff; }
.method-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; }
.method-title { position: sticky; top: 70px; align-self: start; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 72px 1fr; gap: 28px; padding: 30px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps > li > span { color: var(--blue); font-size: .77rem; font-weight: 800; letter-spacing: .12em; }
.steps h3 { margin: 0 0 9px; font-size: 1.35rem; }
.steps p { margin: 0; color: var(--muted); }

.closing { padding: 90px 0; color: #fff; background: linear-gradient(125deg, #102348, #071325); }
.closing-inner { display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 70px; }
.closing-inner img { width: 180px; }
.closing-inner p { max-width: 580px; margin: 0; font-size: clamp(1.55rem, 2.8vw, 2.7rem); line-height: 1.25; letter-spacing: -.025em; }
.closing-inner a { color: var(--cyan); font-weight: 700; }

footer { padding: 24px 0; color: #8690a3; background: #050d19; font-size: .8rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.footer-contact { color: var(--cyan); transition: color .2s ease; }
.footer-contact:hover, .footer-contact:focus-visible { color: var(--white); }

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

@media (max-width: 980px) {
  :root { --shell: min(100% - 36px, 760px); }
  .hero { min-height: auto; padding-bottom: 60px; }
  .hero-grid, .section-heading, .project-card, .method-grid { grid-template-columns: 1fr; }
  .system-visual { min-height: 430px; margin-top: 30px; }
  .proof-strip { margin-top: 45px; }
  .project-card { min-height: 0; }
  .project-preview { min-height: 560px; order: -1; }
  .project-content { padding: 52px 42px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .cap-icon { margin-top: 30px; }
  .method-title { position: static; }
  .closing-inner { grid-template-columns: 150px 1fr; gap: 35px; }
  .closing-inner a { grid-column: 2; }
}

@media (max-width: 680px) {
  :root { --shell: calc(100% - 28px); }
  .site-header, .header-inner { height: 78px; }
  .brand img { width: 112px; height: 52px; }
  .menu-toggle {
    display: grid; place-content: center; gap: 6px; width: 46px; height: 46px;
    border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: transparent;
  }
  .menu-toggle span:not(.sr-only) { width: 19px; height: 2px; background: #fff; transition: transform .2s ease; }
  .main-nav {
    position: absolute; left: 14px; right: 14px; top: 72px; display: none;
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px;
    border: 1px solid rgba(255,255,255,.14); border-radius: 18px;
    background: rgba(7,19,37,.96); box-shadow: 0 20px 50px rgba(0,0,0,.32);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 12px; }
  .hero { padding: 130px 0 44px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.7rem); }
  .hero-text { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .system-visual { min-height: 390px; transform: scale(.86); margin-inline: -24px; }
  .orbit-two { width: 430px; height: 430px; }
  .orbit-one { width: 300px; height: 300px; }
  .node { width: 145px; }
  .node-a { left: -4%; }
  .node-b { right: -8%; }
  .node-c { right: -5%; }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip > div { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .section { padding: 82px 0; }
  .section-heading { gap: 24px; margin-bottom: 40px; }
  .section-heading h2, .method h2 { font-size: 2.75rem; }
  .project-preview { min-height: 430px; padding: 34px 14px; }
  .preview-layout { height: 260px; grid-template-columns: 60px 1fr; }
  .preview-main { padding: 18px; }
  .chart { gap: 7px; }
  .floating-ticket { width: 170px; right: 8px; bottom: 15px; }
  .project-content { padding: 42px 26px; }
  .project-content h3 { font-size: 3.6rem; }
  .pos-body { grid-template-columns: 1fr 125px; padding: 12px; gap: 8px; }
  .product-grid { gap: 7px; }
  .product-grid i span { height: 45px; }
  .capability-grid article { padding: 36px 18px; }
  .steps li { grid-template-columns: 50px 1fr; gap: 12px; }
  .closing-inner { grid-template-columns: 1fr; gap: 26px; text-align: left; }
  .closing-inner a { grid-column: auto; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
}
