/* J&J Business Consultancy Services — company homepage */
:root {
  --navy: #0B1530;
  --navy-2: #14224A;
  --blue: #2F55FF;
  --blue-dark: #2443d6;
  --bg: #F7F9FC;
  --surface: #FFFFFF;
  --text: #0B1530;
  --muted: #5A6785;
  --line: rgba(11, 21, 48, 0.1);
  --radius: 16px;
  --container: 1180px;
  --font-heading: 'Sora', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
section[id] { scroll-margin-top: 72px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-alt { background: var(--surface); }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.eyebrow { font-family: var(--font-heading); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.eyebrow-light { color: #9DB2FF; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); margin-bottom: 18px; }
.lead { font-size: 1.1rem; color: var(--muted); }
.lead-light { color: rgba(255, 255, 255, 0.78); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; padding: 14px 26px; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px rgba(47, 85, 255, 0.35); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 12px 30px rgba(47, 85, 255, 0.45); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { box-shadow: 0 12px 30px rgba(255, 255, 255, 0.25); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s ease, box-shadow .3s ease; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: block; }
.logo { height: 36px; width: auto; }
.logo-dark { display: none; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-menu a:not(.btn) { color: rgba(255, 255, 255, 0.88); text-decoration: none; font-size: 0.92rem; font-weight: 500; transition: color .2s ease; }
.nav-menu a:not(.btn):hover { color: #fff; }
.nav.scrolled { background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav.scrolled .logo-light { display: none; }
.nav.scrolled .logo-dark { display: block; }
.nav.scrolled .nav-menu a:not(.btn) { color: var(--muted); }
.nav.scrolled .nav-menu a:not(.btn):hover { color: var(--navy); }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .25s ease, background .25s ease; }
.nav.scrolled .nav-toggle span { background: var(--navy); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--navy); color: #fff; }
.hero-bg { position: absolute; inset: 0; background: url('../images/hero-skyline.webp') center 60% / cover no-repeat; animation: heroZoom 18s ease-out both; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 21, 48, 0.92) 0%, rgba(11, 21, 48, 0.7) 45%, rgba(11, 21, 48, 0.25) 100%), linear-gradient(0deg, rgba(11, 21, 48, 0.6), transparent 40%); }
.hero-content { position: relative; padding-block: 120px 96px; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); font-weight: 700; max-width: 14em; margin-bottom: 24px; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 36em; color: rgba(255, 255, 255, 0.82); margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, 0.6); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* About */
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-text p { color: var(--muted); font-size: 1.05rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 16px; }
.fact-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 6px; }
.fact strong { font-family: var(--font-heading); font-size: 1.05rem; line-height: 1.3; display: block; }
.about-media { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 30px 60px rgba(11, 21, 48, 0.18); background: var(--navy-2); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }

/* Solutions */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(11, 21, 48, 0.12); border-color: rgba(47, 85, 255, 0.35); }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(47, 85, 255, 0.1); display: grid; place-items: center; margin-bottom: 20px; }
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Products */
.product-card { position: relative; overflow: hidden; border-radius: 28px; background: var(--navy); color: #fff; padding: clamp(32px, 5vw, 64px); }
.product-bg { position: absolute; inset: 0; background: radial-gradient(60% 80% at 100% 0%, rgba(140, 82, 255, 0.5), transparent 60%), radial-gradient(50% 70% at 0% 100%, rgba(47, 85, 255, 0.45), transparent 60%), url('../images/abstract-light.webp') right center / cover no-repeat; opacity: 0.9; }
.product-body { position: relative; max-width: 620px; }
.chip { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); margin-bottom: 20px; }
.product-card h3 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: 14px; background: linear-gradient(135deg, #fff 30%, #C9B8FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.product-tag { font-size: 1.15rem; color: rgba(255, 255, 255, 0.85); margin-bottom: 24px; }
.product-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.product-list li { position: relative; padding-left: 22px; font-size: 0.98rem; color: rgba(255, 255, 255, 0.9); }
.product-list li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, #2F55FF, #E23FC4); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.product-card-sm { padding: clamp(24px, 2.6vw, 32px); }
.product-card-sm h3 { font-size: clamp(1.9rem, 3vw, 2.4rem); }
.product-card-sm .product-list { grid-template-columns: 1fr; }
.btn-soon { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; cursor: default; }
.product-bg, .product-card h3, .product-list li::before { filter: hue-rotate(var(--hue, 0deg)); }
.product-omnikey { --hue: -75deg; }
.product-replya { --hue: -35deg; }
.product-amiko { --hue: 60deg; }
.product-bustan { --hue: -140deg; }
.product-more { margin-top: 20px; border: 1.5px dashed rgba(11, 21, 48, 0.2); border-radius: 20px; padding: 22px 28px; color: var(--muted); text-align: center; }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps-line { position: absolute; left: 22px; right: calc(25% - 22px + 8px); top: 22px; height: 2px; background: linear-gradient(90deg, var(--blue), #8C52FF); transform-origin: left; transform: scaleX(0); transition: transform 1.4s ease .2s; }
.steps.in .steps-line { transform: scaleX(1); }
.step { position: relative; }
.step-num { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem; margin-bottom: 20px; box-shadow: 0 0 0 6px var(--surface); }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Contact */
.contact { position: relative; color: #fff; background: var(--navy); overflow: hidden; padding-block: clamp(80px, 11vw, 140px); }
.contact-bg { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 21, 48, 0.88), rgba(11, 21, 48, 0.8)), url('../images/contact-sunset.webp') center / cover no-repeat; }
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.contact-details { display: grid; gap: 24px; margin-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 32px; }
.contact-details .fact-label { color: #9DB2FF; }
.contact-details address, .contact-details p { font-style: normal; margin: 0; color: rgba(255, 255, 255, 0.85); }
.mail-link { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.form { background: rgba(11, 21, 48, 0.55); color: #fff; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 20px; padding: clamp(24px, 4vw, 40px); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25); display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: 0.85rem; font-weight: 600; color: rgba(255, 255, 255, 0.92); }
.field label span { color: #9DB2FF; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: #fff; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 12px; padding: 14px 16px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.45); }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px; background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center; }
.field select:invalid { color: rgba(255, 255, 255, 0.45); }
.field select option { color: var(--text); background: #fff; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background-color: rgba(255, 255, 255, 0.1); border-color: #9DB2FF; box-shadow: 0 0 0 3px rgba(157, 178, 255, 0.2); }
.field input:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 1000px #17214A inset; caret-color: #fff; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #FF8A80; }
.field-error { font-size: 0.8rem; color: #FFB4AB; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { width: 100%; font-family: var(--font-heading); font-weight: 600; font-size: 0.98rem; color: #fff; background: var(--blue); border: 0; border-radius: 12px; padding: 17px 24px; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.form-submit:hover { background: var(--blue-dark); transform: translateY(-1px); }
.form-submit[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.form-status { margin: 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); min-height: 1.4em; }
.form-status.ok { color: #7EE2B0; }
.form-status.err { color: #FFB4AB; }

/* Footer */
.footer { background: #070E22; color: rgba(255, 255, 255, 0.7); padding-top: 56px; font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 36px; }
.footer-brand img { height: 36px; width: auto; margin-bottom: 12px; }
.footer-brand p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: flex-start; }
.footer-links a { text-decoration: none; }
.footer-links a:hover, .footer-legal a:hover { color: #fff; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-block: 24px 32px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }
.footer-legal p { margin: 0 0 6px; }

/* Reveal animation (only when JS is available) */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .card[data-reveal].in { transition: opacity .8s ease var(--d, 0ms), transform .3s ease, box-shadow .3s ease, border-color .3s ease; }

/* Responsive */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps-line { display: none; }
}
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { aspect-ratio: 16 / 10; order: -1; }
  .nav-toggle { display: flex; }
  .nav-menu { position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); padding: 8px 16px 20px; display: none; }
  .nav.open .nav-menu { display: flex; }
  .nav-menu a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.9) !important; }
  .nav-menu .btn { margin-top: 16px; justify-content: center; }
  .nav.open { background: var(--navy); }
  .nav.open .logo-light { display: block; }
  .nav.open .logo-dark { display: none; }
  .nav.open .nav-toggle span { background: #fff; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 640px) {
  .cards, .steps, .facts, .product-list, .product-grid, .row { grid-template-columns: 1fr; }
  .hero-overlay { background: linear-gradient(0deg, rgba(11, 21, 48, 0.85), rgba(11, 21, 48, 0.55)); }
  .scroll-cue { display: none; }
  .logo { height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .steps-line { transform: none; }
}

/* Legal pages */
.legal { padding-top: 72px; }
.legal-body { max-width: 760px; padding-block: clamp(48px, 7vw, 96px); }
.legal h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); margin-bottom: 10px; }
.legal-meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 32px; }
.legal h2 { font-size: 1.3rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); font-size: 1rem; }
.legal ul { padding-left: 22px; margin: 0 0 16px; }
.legal li { margin-bottom: 6px; }
.legal address { font-style: normal; color: var(--muted); }
.legal a { color: var(--blue); }
