:root {
  --navy: #0a192c;
  --navy-2: #122a46;
  --ink: #182233;
  --muted: #606975;
  --blue: #1748d2;
  --blue-dark: #1039ad;
  --cyan: #0d9c8c;
  --orange: #e6532f;
  --paper: #f3f1ea;
  --white: #fffdf8;
  --line: #cfd3d0;
  --soft-blue: #e9eefb;
  --soft-green: #e7f4ef;
  --danger: #b42318;
  --success: #087a5b;
  --shadow: 7px 7px 0 rgba(10, 25, 44, .09);
  --radius: 6px;
  --max: 1100px;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Iowan Old Style", "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--font-body); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.navbar { position: sticky; top: 0; z-index: 50; height: 70px; background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(220,229,239,.8); backdrop-filter: blur(18px); }
.navbar .container { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--navy); font-size: 1.18rem; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; color: white; background: linear-gradient(145deg, var(--blue), var(--cyan)); border-radius: 9px; font-weight: 900; box-shadow: 0 7px 18px rgba(18,104,232,.22); }
.nav-links { display: flex; align-items: center; gap: 22px; margin-right: auto; }
.nav-links a { color: #34475f; font-size: .88rem; font-weight: 600; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; }
.lang-btn { padding: 5px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: .77rem; font-weight: 700; }
.lang-btn.active { color: var(--navy); background: var(--paper); }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 1.4rem; color: var(--navy); }

.btn { min-height: 41px; padding: 9px 17px; border: 1px solid transparent; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: .92rem; font-weight: 700; transition: .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { position: relative; overflow: hidden; background: var(--blue); color: white; box-shadow: 0 9px 24px rgba(18,104,232,.2); }
.btn-primary::after { content: ""; position: absolute; inset: -120% auto -120% -45%; width: 30%; background: rgba(255,255,255,.22); transform: rotate(18deg); transition: left .55s ease; }
.btn-primary:hover::after { left: 120%; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: white; color: var(--navy); border-color: var(--line); }
.btn-secondary:hover { border-color: #aabbd0; }
.btn-dark { background: var(--navy); color: white; }
.btn-danger { color: var(--danger); background: #fff4f2; border-color: #ffd5cf; }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: .88rem; }
.btn-lg { min-height: 48px; padding: 11px 21px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--cyan); }
.hero { position: relative; overflow: hidden; padding: 72px 0 70px; background: linear-gradient(135deg, #f7fbff 0%, #fff 55%, #effaf8 100%); }
.hero::before { content: ""; position: absolute; left: 4%; bottom: -150px; width: 520px; height: 340px; border-radius: 50%; background: radial-gradient(ellipse, rgba(19,184,166,.12), rgba(19,184,166,0) 70%); }
.hero::after { content: ""; position: absolute; right: -130px; top: -180px; width: 520px; height: 520px; border: 82px solid rgba(18,104,232,.04); border-radius: 50%; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 50px; }
.hero h1 { max-width: 650px; margin: 13px 0 18px; font-size: clamp(2rem, 3.2vw, 2.5rem); line-height: 1.14; letter-spacing: -.035em; color: var(--navy); }
.hero h1 span { color: var(--blue); }
.hero-lead { max-width: 610px; margin: 0 0 25px; color: var(--muted); font-size: 1.02rem; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.trust-row { display: flex; gap: 18px; margin-top: 27px; flex-wrap: wrap; color: #4a5c73; font-size: .82rem; }
.trust-row span::before { content: "✓"; margin-right: 7px; color: var(--success); font-weight: 900; }
.product-window { padding: 10px; max-width: 470px; background: rgba(255,255,255,.88); border: 1px solid white; border-radius: 20px; box-shadow: var(--shadow); transform: rotate(.6deg); will-change: transform; }
.window-bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 8px; }
.window-bar i { width: 8px; height: 8px; border-radius: 50%; background: #c9d5e2; }
.window-body { --tilt-x: 0deg; --tilt-y: 0deg; padding: 22px; background: var(--navy); border-radius: 14px; color: white; transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); transform-style: preserve-3d; transition: transform .24s ease-out; }
.window-label { color: #8dbaf7; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.window-body h3 { margin: 7px 0 18px; font-size: 1.24rem; }
.project-line { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem; }
.project-line b { width: 34px; height: 34px; display: grid; place-items: center; background: rgba(19,184,166,.17); color: #78eadb; border-radius: 9px; }
.project-line small { display: block; color: #9fb1c7; }
.status { display: inline-flex; padding: 4px 9px; border-radius: 99px; font-size: .72rem; font-weight: 800; background: rgba(19,184,166,.14); color: #72ddcf; }

.section { padding: 74px 0; }
.section-alt { background: var(--paper); }
.section-dark { background: var(--navy); color: white; }
.section-header { max-width: 640px; margin-bottom: 34px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header.center .eyebrow { justify-content: center; }
.section h2, .page-hero h1 { margin: 9px 0 12px; color: var(--navy); font-size: clamp(1.65rem, 2.9vw, 2.35rem); line-height: 1.18; letter-spacing: -.03em; }
.section-dark h2 { color: white; }
.section-header p { margin: 0; color: var(--muted); font-size: .96rem; }
.section-dark .section-header p { color: #aebdd0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.service-card, .info-card, .panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.service-card { position: relative; display: flex; flex-direction: column; padding: 22px; transition: .25s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #bfd3e9; }
.service-icon, .info-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--soft-blue); color: var(--blue); font-size: 1rem; font-weight: 900; }
.service-card h3, .info-card h3 { margin: 16px 0 7px; color: var(--navy); font-size: 1.06rem; }
.service-card p, .info-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.service-card .price { margin: 19px 0 14px; color: var(--navy); font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; }
.service-card .price small { color: var(--muted); font-size: .8rem; font-weight: 600; }
.card-meta { display: flex; gap: 12px; margin: 13px 0; color: var(--muted); font-size: .76rem; }
.service-card .btn { margin-top: auto; }
.info-card { padding: 22px; }
.process-step { position: relative; padding: 21px; border-top: 2px solid var(--line); }
.process-step .number { position: absolute; top: -17px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: white; font-size: .8rem; font-weight: 800; }
.process-step h3 { margin: 18px 0 7px; color: var(--navy); font-size: 1.02rem; }
.process-step p { margin: 0; color: var(--muted); font-size: .86rem; }

.cta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 34px; border-radius: 19px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: white; }
.cta h2 { margin: 0 0 7px; color: white; font-size: 1.65rem; }
.cta p { margin: 0; color: #b4c3d5; }

.page-hero { padding: 52px 0 46px; background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero p { max-width: 680px; margin: 0; color: var(--muted); font-size: .96rem; }
.breadcrumbs { margin-bottom: 16px; color: var(--muted); font-size: .88rem; }
.breadcrumbs a { color: var(--blue); }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 42px; align-items: start; }
.detail-content h2 { margin: 30px 0 11px; color: var(--navy); font-size: 1.3rem; }
.check-list { list-style: none; padding: 0; margin: 16px 0; }
.check-list li { position: relative; padding: 7px 0 7px 28px; color: #34475f; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 900; }
.purchase-card { position: sticky; top: 90px; padding: 23px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.purchase-card .price { color: var(--navy); font-size: 1.7rem; font-weight: 850; }
.purchase-card hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.purchase-fact { display: flex; justify-content: space-between; gap: 18px; margin: 10px 0; font-size: .9rem; }
.purchase-fact span { color: var(--muted); }
.notice { padding: 14px 16px; border-radius: 10px; background: var(--soft-blue); color: #31516f; font-size: .86rem; }

.form-card { padding: 24px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 9px 28px rgba(8,27,51,.06); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 7px; color: var(--navy); font-size: .88rem; font-weight: 750; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 14px; color: var(--ink); background: white; border: 1px solid #cdd9e6; border-radius: 9px; outline: none; }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18,104,232,.11); }
.checkbox { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: .86rem; }
.checkbox input { margin-top: 5px; }
.checkbox a { color: var(--blue); text-decoration: underline; }
.alert { display: none; margin: 0 0 18px; padding: 12px 14px; border-radius: 9px; font-size: .9rem; }
.alert.show { display: block; }
.alert-error { color: var(--danger); background: #fff2f0; border: 1px solid #ffd0ca; }
.alert-success { color: var(--success); background: var(--soft-green); border: 1px solid #b9eadf; }

.auth-page { min-height: calc(100vh - 70px); padding: 44px 20px; display: grid; place-items: center; background: linear-gradient(145deg, var(--paper), #eef9f7); }
.auth-card { width: min(100%, 420px); padding: 28px; background: white; border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow); }
.auth-card h1 { margin: 0 0 6px; color: var(--navy); font-size: 1.55rem; }
.auth-sub, .auth-footer { color: var(--muted); }
.auth-footer { margin: 20px 0 0; text-align: center; font-size: .9rem; }
.auth-footer a { color: var(--blue); font-weight: 700; }

.dashboard-shell { min-height: calc(100vh - 70px); padding: 36px 0 66px; background: var(--paper); }
.dashboard-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.dashboard-head h1 { margin: 0 0 4px; color: var(--navy); }
.dashboard-head p { margin: 0; color: var(--muted); }
.dashboard-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 26px; }
.side-nav { padding: 12px; align-self: start; }
.side-nav button { width: 100%; padding: 11px 13px; text-align: left; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 650; }
.side-nav button.active { color: var(--blue); background: var(--soft-blue); }
.dashboard-panel { padding: 22px; }
.dashboard-panel h2 { margin: 0 0 5px; color: var(--navy); font-size: 1.35rem; }
.dashboard-panel > p { margin-top: 0; color: var(--muted); }
.order-list { display: grid; gap: 14px; }
.order-card { padding: 19px; border: 1px solid var(--line); border-radius: 13px; }
.order-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.order-card h3 { margin: 0 0 4px; color: var(--navy); font-size: 1rem; }
.order-card p { margin: 3px 0; color: var(--muted); font-size: .86rem; }
.order-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.badge { padding: 5px 9px; border-radius: 99px; background: var(--soft-blue); color: var(--blue); font-size: .73rem; font-weight: 800; white-space: nowrap; }
.badge.green { background: var(--soft-green); color: var(--success); }
.badge.red { background: #fff2f0; color: var(--danger); }
.empty { padding: 38px 20px; text-align: center; color: var(--muted); border: 1px dashed #c8d5e3; border-radius: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
th, td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }

.legal { width: min(calc(100% - 40px), 790px); margin: 0 auto; padding: 52px 0 76px; }
.legal h1 { margin: 0 0 6px; color: var(--navy); font-size: 2rem; }
.legal .updated { color: var(--muted); margin-bottom: 35px; }
.legal h2 { margin: 28px 0 9px; color: var(--navy); font-size: 1.16rem; }
.legal p, .legal li { color: #465970; }
.legal a { color: var(--blue); }
.entity-box { margin: 18px 0; padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.entity-row { display: grid; grid-template-columns: 180px 1fr; gap: 15px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.entity-row:last-child { border: 0; }
.entity-row span:first-child { color: var(--muted); }

.footer { padding: 58px 0 25px; background: #06172d; color: #dce5ef; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 38px; }
.footer .brand { color: white; }
.footer-about { max-width: 360px; color: #91a3b8; font-size: .9rem; }
.footer h4 { margin: 0 0 14px; color: white; }
.footer-links { display: grid; gap: 8px; color: #91a3b8; font-size: .88rem; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.09); color: #7f92a9; font-size: .78rem; }

.reveal { opacity: 0; transform: translateY(13px); transition: opacity .52s ease, transform .52s cubic-bezier(.22,.68,0,1.12); }
.reveal.visible { opacity: 1; transform: none; }
.grid-4 .reveal:nth-child(2), .grid-3 .reveal:nth-child(2) { transition-delay: .07s; }
.grid-4 .reveal:nth-child(3), .grid-3 .reveal:nth-child(3) { transition-delay: .14s; }
.grid-4 .reveal:nth-child(4) { transition-delay: .21s; }

.hero .eyebrow, .hero h1, .hero-lead, .hero-actions, .hero .trust-row { opacity: 0; animation: heroRise .7s cubic-bezier(.2,.75,.2,1) forwards; }
.hero h1 { animation-delay: .08s; }
.hero-lead { animation-delay: .16s; }
.hero-actions { animation-delay: .24s; }
.hero .trust-row { animation-delay: .32s; }
.hero .product-window { opacity: 0; animation: panelEnter .82s cubic-bezier(.2,.75,.2,1) .18s forwards, panelFloat 6s ease-in-out 1.1s infinite; }
.hero .project-line { opacity: 0; animation: lineSlide .55s ease forwards; }
.hero .project-line:nth-of-type(1) { animation-delay: .52s; }
.hero .project-line:nth-of-type(2) { animation-delay: .64s; }
.hero .project-line:nth-of-type(3) { animation-delay: .76s; }

@keyframes heroRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes panelEnter { from { opacity: 0; transform: translateY(24px) scale(.97) rotate(1.5deg); } to { opacity: 1; transform: translateY(0) scale(1) rotate(.6deg); } }
@keyframes panelFloat { 0%,100% { transform: translateY(0) rotate(.6deg); } 50% { transform: translateY(-7px) rotate(0deg); } }
@keyframes lineSlide { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }

/* Codexs visual identity: editorial typography + engineering ledger details */
.navbar { background: rgba(255,253,248,.96); border-bottom: 2px solid var(--navy); }
.navbar::after { content: ""; position: absolute; left: max(24px, calc(50% - 550px)); bottom: -2px; width: 68px; height: 2px; background: var(--orange); }
.brand { font-family: var(--font-mono); font-size: 1.06rem; letter-spacing: -.04em; text-transform: uppercase; }
.brand-mark { border-radius: 2px; background: var(--navy); box-shadow: 3px 3px 0 var(--orange); font-family: var(--font-body); }
.nav-links a { position: relative; letter-spacing: .01em; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--orange); transition: right .22s ease; }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.lang-switch { border-radius: 2px; border-color: var(--navy); background: var(--white); }
.lang-btn { border-radius: 0; font-family: var(--font-mono); }

.btn { border-radius: 2px; letter-spacing: .01em; }
.btn-primary { box-shadow: 4px 4px 0 rgba(10,25,44,.18); }
.btn-primary::after { content: "↗"; position: static; inset: auto; width: auto; margin-left: 2px; background: none; transform: none; transition: transform .2s ease; }
.btn-primary:hover::after { transform: translate(2px,-2px); }
.btn-secondary { background: var(--white); border-color: var(--navy); }

.eyebrow { color: var(--orange); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; }
.eyebrow::before { content: "//"; width: auto; height: auto; background: none; color: var(--blue); }
.hero { background-color: #f8f6ef; background-image: linear-gradient(rgba(10,25,44,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(10,25,44,.035) 1px, transparent 1px); background-size: 32px 32px; border-bottom: 1px solid var(--navy); }
.hero::before { left: max(24px, calc(50% - 550px)); top: 0; bottom: auto; width: 4px; height: 44px; border-radius: 0; background: var(--orange); }
.hero::after { content: "CODEXS / HK / SOFTWARE PRACTICE"; right: 14px; top: 50%; width: auto; height: auto; border: 0; border-radius: 0; color: rgba(10,25,44,.38); font: 600 .62rem/1 var(--font-mono); letter-spacing: .18em; transform: rotate(90deg) translateX(50%); transform-origin: right top; white-space: nowrap; }
.hero h1, .section h2, .page-hero h1, .legal h1 { font-family: var(--font-display); font-weight: 700; }
.hero h1 { color: #101c2b; letter-spacing: -.025em; }
.hero-lead { max-width: 580px; }
.product-window { border: 1px solid var(--navy); border-radius: 3px; background: var(--white); box-shadow: 9px 9px 0 rgba(230,83,47,.76); }
.window-bar { position: relative; border-bottom: 1px solid var(--line); }
.window-bar::after { content: "PROJECT_LEDGER / 01"; position: absolute; right: 8px; color: var(--muted); font: 600 .58rem/1 var(--font-mono); letter-spacing: .05em; }
.window-body { border-radius: 0; background-color: var(--navy); background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px); background-size: 100% 34px; }
.window-label, .status { font-family: var(--font-mono); }
.project-line b { border: 1px solid rgba(255,255,255,.26); border-radius: 2px; background: transparent; color: #81d9ca; font-family: var(--font-mono); }
.status { border-radius: 2px; }

.section-alt { background-color: var(--paper); background-image: radial-gradient(rgba(10,25,44,.12) .65px, transparent .65px); background-size: 14px 14px; }
.section-header { position: relative; }
.section-header::after { content: ""; display: block; width: 46px; height: 3px; margin-top: 19px; background: linear-gradient(90deg, var(--orange) 0 14px, var(--navy) 14px 100%); }
.section-header.center::after { margin-left: auto; margin-right: auto; }
.service-card, .info-card, .panel { border-color: var(--navy); border-radius: 3px; background: var(--white); }
.service-card { overflow: hidden; border-top-width: 3px; box-shadow: none; }
.service-card::after { content: "SVC"; position: absolute; top: 13px; right: 15px; color: rgba(10,25,44,.32); font: 700 .6rem/1 var(--font-mono); letter-spacing: .14em; }
.service-card:nth-child(even) { border-top-color: var(--orange); }
.service-card:hover { border-color: var(--navy); box-shadow: 7px 7px 0 rgba(10,25,44,.10); transform: translate(-3px,-3px); }
.service-icon, .info-icon { width: 40px; height: 37px; justify-content: start; border-bottom: 2px solid var(--orange); border-radius: 0; background: transparent; font-family: var(--font-mono); }
.service-card h3, .info-card h3 { letter-spacing: -.015em; }
.service-card .price { font-family: var(--font-mono); font-size: 1.3rem; }
.service-card .price small, .card-meta { font-family: var(--font-mono); }
.info-card { border-left: 3px solid var(--blue); box-shadow: 4px 4px 0 rgba(10,25,44,.06); }
.process-step { border-top-color: var(--navy); }
.process-step .number { top: -15px; width: 31px; height: 28px; border-radius: 0; background: var(--white); border: 1px solid var(--navy); color: var(--navy); font-family: var(--font-mono); box-shadow: 3px 3px 0 var(--orange); }
.cta { border: 1px solid var(--navy); border-left: 5px solid var(--orange); border-radius: 3px; background-color: var(--navy); background-image: linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 32px 100%; }

.page-hero { position: relative; background-color: var(--paper); background-image: linear-gradient(90deg, rgba(10,25,44,.045) 1px, transparent 1px); background-size: 32px 100%; border-bottom-color: var(--navy); }
.page-hero::before { content: ""; position: absolute; left: max(24px, calc(50% - 550px)); top: 0; width: 4px; height: 36px; background: var(--orange); }
.breadcrumbs { font-family: var(--font-mono); font-size: .74rem; }
.purchase-card, .form-card, .auth-card { border-color: var(--navy); border-radius: 3px; box-shadow: 7px 7px 0 rgba(10,25,44,.09); }
.purchase-card .price { font-family: var(--font-mono); }
.form-group label { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .02em; }
.form-group input, .form-group select, .form-group textarea { border-radius: 2px; border-color: #9da5a7; background: #fffefa; }
.notice { border: 1px solid #b7c1ce; border-radius: 2px; background: #edf1f6; }
.alert { border-radius: 2px; }
.side-nav button { border-radius: 2px; font-family: var(--font-mono); font-size: .78rem; }
.order-card { border-radius: 2px; border-color: var(--navy); background: #fffefa; }
.badge { border-radius: 2px; font-family: var(--font-mono); }
.legal { font-size: .96rem; }
.legal h2 { padding-left: 12px; border-left: 3px solid var(--orange); font-family: var(--font-body); letter-spacing: -.01em; }
.entity-box { border-radius: 2px; }
.footer { position: relative; border-top: 4px solid var(--orange); background-color: #071526; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 32px 32px; }
.footer h4 { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 980px) {
  .hero::after { display: none; }
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; padding: 17px 20px; flex-direction: column; align-items: flex-start; gap: 13px; background: white; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; margin-left: auto; }
  .nav-actions .btn-secondary { display: none; }
  .hero-grid, .detail-grid { grid-template-columns: 1fr; }
  .product-window { max-width: 540px; box-shadow: 6px 6px 0 rgba(230,83,47,.68); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
  .purchase-card { position: static; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .navbar { height: 64px; }
  .navbar .container { gap: 12px; }
  .nav-links { top: 64px; }
  .nav-actions .lang-switch { display: none; }
  .hero { padding: 48px 0 52px; }
  .hero h1 { font-size: 1.92rem; line-height: 1.14; }
  .hero-lead { font-size: .94rem; }
  .section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4, .form-grid, .dashboard-grid, .footer-grid { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; padding: 25px 21px; }
  .dashboard-grid { gap: 15px; }
  .side-nav { display: flex; overflow-x: auto; }
  .side-nav button { width: auto; white-space: nowrap; }
  .order-top, .dashboard-head, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .entity-row { grid-template-columns: 1fr; gap: 2px; }
  .page-hero { padding: 39px 0; }
  .purchase-card, .form-card, .auth-card { box-shadow: 4px 4px 0 rgba(10,25,44,.08); }
  .service-card:hover { transform: none; box-shadow: 4px 4px 0 rgba(10,25,44,.08); }
}

@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; }
}
