:root {
  --primary: #0b5e6d;
  --primary-dark: #102a33;
  --accent: #c28a2e;
  --sky: #eaf4f7;
  --bg: #f6f9fb;
  --surface: #ffffff;
  --line: #dbe7eb;
  --text: #17252d;
  --muted: #566b73;
  --shadow: 0 18px 45px rgba(18, 54, 65, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 40px)); margin: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { width: min(1480px, calc(100% - 40px)); min-height: 88px; margin: auto; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand img { display: block; width: 245px; max-height: 60px; object-fit: contain; }
.site-header nav { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.site-header nav a { padding: 9px 10px; border-radius: 8px; color: #36505a; font-size: .92rem; font-weight: 800; white-space: nowrap; }
.site-header nav a:hover { background: var(--sky); color: var(--primary); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; white-space: nowrap; }
.login-tabs { display: flex; align-items: center; justify-content: flex-end; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: #f2f7fa; }
.login-tabs a { padding: 9px 12px; border-radius: 8px; color: #244653; font-size: .82rem; font-weight: 900; }
.login-tabs a:hover { background: #fff; color: var(--primary); }
.login-tabs .register-tab { background: var(--primary-dark); color: #fff; }
.header-cta, .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid transparent; border-radius: 9px; font-weight: 900; }
.header-cta, .primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(11,94,109,.18); }
.secondary { background: #fff; border-color: var(--line); color: var(--primary-dark); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 94px 0; scroll-margin-top: 100px; background: radial-gradient(circle at 80% 18%, rgba(194,138,46,.16), transparent 28%), linear-gradient(130deg, rgba(11,94,109,.13), transparent 48%), linear-gradient(#fbfdfe,#e9f2f5); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; opacity: .3; animation: float 6s ease-in-out infinite; }
.hero::before { width: 180px; height: 180px; right: -50px; top: 60px; background: #1598e5; }
.hero::after { width: 90px; height: 90px; left: 45%; bottom: 20px; background: var(--accent); animation-delay: -3s; }
.hero-grid, .split { display: grid; grid-template-columns: 1.04fr .96fr; gap: 48px; align-items: center; }
.hero-grid { position: relative; z-index: 2; }
.hero-grid > div:first-child { animation: copyIn .9s .3s both; }
.eyebrow { display: inline-flex; margin-bottom: 16px; color: #9a6415; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 900; }
h1, h2 { margin: 0; line-height: 1.03; }
h1 { font-size: clamp(2.4rem, 5vw, 5.1rem); }
h2 { font-size: clamp(1.9rem, 3vw, 3.2rem); }
p { color: var(--muted); line-height: 1.7; font-size: 1.04rem; }
.section-lead { max-width: 760px; margin: 16px 0 0; }
.actions, .proof { display: flex; flex-wrap: wrap; gap: 12px; }
.actions { margin-top: 28px; }
.proof { margin-top: 24px; }
.proof span, .benefits span { padding: 10px 12px; border: 1px solid rgba(11,94,109,.18); border-radius: 8px; background: #fff; color: #29454f; font-weight: 800; }
.hero-image { position: relative; overflow: hidden; min-height: 560px; border: 1px solid rgba(11,94,109,.22); border-radius: 14px; background: #102f38; box-shadow: 0 30px 90px rgba(15,54,66,.2); animation: visualIn 1s .4s both; }
.hero-image > img { width: 100%; height: 100%; min-height: 560px; display: block; object-fit: cover; }
.hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(9,31,38,.78)); }
.image-card { position: absolute; z-index: 3; left: 22px; right: 22px; bottom: 22px; padding: 17px; border-radius: 10px; background: rgba(255,255,255,.94); box-shadow: 0 18px 45px rgba(0,0,0,.2); }
.image-card strong, .image-card span { display: block; }
.image-card span { margin-top: 5px; color: #526972; }

/* Animated code window */
.code-window { position: absolute; z-index: 4; top: 28px; left: 28px; width: min(390px,72%); overflow: hidden; border: 1px solid rgba(121,189,231,.34); border-radius: 14px; background: rgba(6,28,43,.92); color: #d9efff; box-shadow: 0 22px 60px rgba(0,16,31,.8); backdrop-filter: blur(14px); animation: codeFloat 5s ease-in-out infinite; }
.code-bar { display: flex; align-items: center; gap: 7px; padding: 11px 13px; border-bottom: 1px solid rgba(255,255,255,.1); background: #0e3045; }
.code-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff6b6b; }
.code-bar i:nth-child(2) { background: #f1c453; }
.code-bar i:nth-child(3) { background: #57d386; }
.code-bar span { margin-left: 7px; color: #9dc5d9; font: 700 .68rem ui-monospace, Consolas, monospace; }
.code-window code { display: grid; gap: 9px; padding: 17px 18px; font: 700 clamp(.62rem,1.05vw,.82rem)/1.4 ui-monospace, Consolas, monospace; }
.code-line { display: block; width: 0; max-width: max-content; overflow: hidden; white-space: nowrap; color: #70d7ff; animation: typeLine 8s steps(34,end) infinite; }
.code-line:nth-child(even) { color: #ffd27d; }
.code-line.l1 { animation-delay: .3s; }
.code-line.l2 { animation-delay: 1.35s; }
.code-line.l3 { animation-delay: 2.65s; }
.code-line.l4 { animation-delay: 3.9s; }
.code-line em { display: inline-block; width: 7px; height: 1em; margin-left: 3px; vertical-align: -2px; background: #fff; animation: blink .75s infinite; }
.build-status { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-top: 1px solid rgba(255,255,255,.1); color: #bcebd0; font: 800 .68rem ui-monospace, Consolas, monospace; }
.build-status span { width: 8px; height: 8px; border-radius: 50%; background: #57d386; box-shadow: 0 0 12px #57d386; animation: pulse 1.6s infinite; }

/* Sections and cards */
.intro { padding: 64px 0; background: var(--primary-dark); color: #fff; }
.intro .eyebrow { color: #d8e8ec; }
.benefits { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.section { padding: 82px 0; scroll-margin-top: 100px; }
.muted { background: #eaf2f5; }
.card-grid, .stats, .process { display: grid; gap: 18px; }
.card-grid { grid-template-columns: repeat(3,1fr); margin-top: 30px; }
.card-grid article, .stats div, .process article, form { padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.card-grid strong, .process strong { display: block; margin-bottom: 8px; font-size: 1.18rem; }
.service-img, .price-img, .process-img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: 14px; }
.stats { grid-template-columns: repeat(4,1fr); margin-top: 28px; }
.stats strong { display: block; color: var(--primary); font-size: 2.2rem; }
.stats span { color: var(--muted); }
.process { grid-template-columns: repeat(5,1fr); margin-top: 28px; }
.process b { color: var(--accent); }
.note { margin-top: 22px; padding: 16px 18px; border: 1px solid rgba(194,138,46,.25); border-radius: 8px; background: #fffaf1; color: #6f4d19; font-weight: 800; }

/* Custom pages */
.page-hero { position: relative; overflow: hidden; padding: 86px 0 72px; background: radial-gradient(circle at 82% 18%, rgba(194,138,46,.18), transparent 26%), linear-gradient(135deg,#f7fbfc,#e7f1f4); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 920px; font-size: clamp(2.35rem,5vw,4.8rem); }
.page-hero p { max-width: 760px; margin: 20px 0 0; font-size: 1.15rem; }
.page-body { background: #fff; }
.custom-content { width: min(920px,100%); margin: auto; }
.custom-content > *:first-child { margin-top: 0; }
.custom-content h2, .custom-content h3 { margin: 36px 0 14px; color: var(--primary-dark); line-height: 1.12; }
.custom-content h2 { font-size: clamp(1.85rem,3vw,2.8rem); }
.custom-content h3 { font-size: 1.45rem; }
.custom-content p, .custom-content li { color: var(--muted); line-height: 1.8; font-size: 1.06rem; }
.custom-content ul, .custom-content ol { padding-left: 1.25rem; }
.custom-content li { margin: 8px 0; }
.custom-content img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 12px; box-shadow: 0 18px 45px rgba(18,54,65,.12); }
.custom-content blockquote { margin: 28px 0; padding: 20px 24px; border-left: 5px solid var(--accent); background: #fffaf1; color: #5e4317; font-weight: 800; }
.custom-content table { width: 100%; margin: 28px 0; border-collapse: collapse; overflow: hidden; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.custom-content th, .custom-content td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.custom-content th { background: var(--sky); color: var(--primary-dark); }
.custom-content .content-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 18px; margin: 28px 0; }
.custom-content .content-card { padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdfe; box-shadow: var(--shadow); }
.custom-content .btn, .custom-content a.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 8px; padding: 0 18px; border-radius: 9px; background: var(--primary); color: #fff; font-weight: 900; box-shadow: 0 10px 24px rgba(11,94,109,.18); }

/* Visual showcase and portfolio */
.visual-showcase { background: #fff; }
.visual-gallery { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; margin-top: 30px; }
.visual-gallery figure { position: relative; overflow: hidden; margin: 0; border-radius: 20px; box-shadow: 0 18px 50px rgba(16,47,63,.14); }
.visual-gallery img { width: 100%; height: 330px; display: block; object-fit: cover; transition: transform .5s ease; }
.visual-gallery figure:hover img { transform: scale(1.05); }
.visual-gallery figcaption { position: absolute; left: 15px; right: 15px; bottom: 15px; padding: 13px; border-radius: 11px; background: rgba(7,31,51,.87); color: #fff; font-weight: 900; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 18px; margin-top: 28px; }
.portfolio-card { padding: 14px; border: 1px solid #e4ebf0; border-radius: 10px; background: #fff; box-shadow: 0 10px 25px rgba(23,59,77,.05); }
.portfolio-card img { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; }
.portfolio-card strong { display: block; margin-top: 12px; }
.portfolio-card a { color: #1269b0; font-weight: 900; }

/* Pricing */
.pricing { background: #fbfdfe; }
.price-categories { display: grid; gap: 28px; margin-top: 32px; }
.price-category { padding: 22px; border: 1px solid rgba(11,94,109,.14); border-radius: 10px; background: linear-gradient(180deg,#fff,#f7fbfc); box-shadow: 0 16px 42px rgba(18,54,65,.06); }
.price-category-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.price-category-head span { color: var(--primary-dark); font-size: 1.35rem; font-weight: 900; }
.price-category-head small { padding: 7px 10px; border-radius: 999px; background: #e8f2f5; color: var(--primary); font-weight: 900; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 18px; }
.price-card { position: relative; overflow: hidden; padding: 24px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.price-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg,var(--primary),var(--accent)); }
.price-name { color: var(--primary); font-size: 1.08rem; font-weight: 900; }
.price { display: block; margin: 10px 0; color: var(--primary-dark); font-size: 2rem; }
.price-card ul { flex: 1; margin: 0; padding: 0; color: var(--muted); line-height: 1.75; list-style: none; }
.price-card li { position: relative; margin: 5px 0; padding-left: 24px; }
.price-card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.price-card .btn { margin-top: 18px; }

/* Contact and forms */
.contact { background: var(--primary); color: #fff; }
.contact p, .contact .eyebrow { color: #e1eef2; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 7px; color: #314d57; font-weight: 800; }
input, select, textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
textarea { min-height: 120px; }

/* Footer */
footer { padding: 54px 0 24px; background: #0d2027; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr 1fr; gap: 34px; align-items: start; }
footer img { width: 250px; display: block; }
footer p, footer a { color: #cfe0e5; }
.footer-links, .footer-contact { display: grid; gap: 10px; }
.footer-contact {
  gap: 4px;
}

.footer-contact p {
  margin: 0;
  line-height: 1.35;
}

.footer-contact strong {
  margin-bottom: 8px;
}

footer strong { display: block; margin-bottom: 8px; color: #fff; font-size: 1.08rem; }
.copyright { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); color: #b9c9ce; }

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

/* Opening loader */
.intro-loader { position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; background: #071f33; color: #fff; transition: opacity .65s, visibility .65s; }
.intro-loader div { display: grid; justify-items: center; gap: 14px; }
.intro-loader b { font-size: clamp(2.2rem,6vw,4rem); }
.intro-loader span { width: 190px; height: 3px; background: linear-gradient(90deg,#1598e5,var(--accent)); animation: load 1.1s infinite; }
.intro-loader small { letter-spacing: .16em; text-transform: uppercase; }
.loaded .intro-loader { opacity: 0; visibility: hidden; }

/* Animations */
@keyframes load { 50% { transform: scaleX(.35); } }
@keyframes copyIn { from { opacity: 0; transform: translateY(30px); } }
@keyframes visualIn { from { opacity: 0; transform: translateX(45px) scale(.96); } }
@keyframes float { 50% { transform: translateY(-15px); } }
@keyframes codeFloat { 50% { transform: translateY(-8px) rotate(.3deg); } }
@keyframes typeLine { 0%,8% { width: 0; } 28%,82% { width: 100%; } 92%,100% { width: 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 50% { transform: scale(1.35); opacity: .65; } }

/* Tablet */
@media (max-width: 1160px) {
  .header-inner { display: flex; min-height: 82px; }
  .site-header nav { display: none; }
  .header-actions { margin-left: auto; }
  .brand img { width: 215px; }
  .hero-grid, .split, .footer-grid { grid-template-columns: 1fr; }
  .card-grid, .stats, .process { grid-template-columns: repeat(2,1fr); }
}

/* Mobile */
@media (max-width: 720px) {
  .container, .header-inner { width: calc(100% - 28px); }
  .header-inner { gap: 10px; }
  .brand img { width: 175px; }
  .header-cta { display: none; }
  .login-tabs a { padding: 8px 9px; font-size: .78rem; }
  .section, .hero { padding: 58px 0; }
  .card-grid, .stats, .process, .benefits, .visual-gallery { grid-template-columns: 1fr; }
  .hero-image, .hero-image > img { min-height: 440px; }
  .code-window { top: 18px; left: 18px; width: calc(100% - 36px); }
  .code-window code { padding: 13px; }
  .build-status { padding: 8px 13px; }
  .price-category { padding: 16px; }
  .price-category-head { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (max-width: 500px) {
  .brand img { width: 145px; }
  .login-tabs a { padding: 7px; font-size: .72rem; }
  .hero-image, .hero-image > img { min-height: 410px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .intro-loader { display: none; }
  .reveal { opacity: 1; transform: none; }
  .code-line { width: 100%; }
}
