/* GIGANT HOLDING — gigand.uz. Qora-oltin uslub, yorug' rejim, mobil moslashuv. */
:root {
  --bg: #0a0a0a; --bg2: #121210; --bg3: #171713; --card: #0e0e0d; --line: rgba(255, 255, 255, .09); --line2: rgba(212, 168, 67, .28);
  --tx: #f4efe4; --tx2: #b9b2a3; --tx3: #837c6f;
  --gold: #d6aa45; --gold2: #f3d27a; --gold3: #a9802b;
  --g-grad: linear-gradient(100deg, #b98a2e 0%, #e6bf5d 45%, #f5d985 70%, #c99a38 100%);
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --r: 4px; --wrap: 1180px;
}
:root[data-theme="light"] {
  --bg: #f7f4ee; --bg2: #efeadf; --bg3: #e9e2d3; --card: #fffdf8; --line: rgba(20, 16, 8, .1); --line2: rgba(169, 128, 43, .35);
  --tx: #17140f; --tx2: #4f4839; --tx3: #7b7262; --gold: #a9802b; --gold2: #c99a38;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--tx); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
h1, h2 { margin: 0; letter-spacing: -.02em; line-height: 1.05; font-weight: 800; }
h2 { font-size: clamp(34px, 5vw, 58px); max-width: 780px; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); }
.lead { color: var(--tx2); font-size: clamp(16px, 1.6vw, 19px); max-width: 560px; margin: 26px 0 0; }
.lead.sm { font-size: 16px; }

/* tugmalar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 40px; padding: 0 18px; border-radius: var(--r);
  font-size: 13px; font-weight: 700; letter-spacing: .01em; border: 1px solid var(--line2); color: var(--tx); cursor: pointer; background: none;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; font-family: inherit; }
.btn i { font-style: normal; font-size: 12px; opacity: .85; }
.btn.gold { background: var(--g-grad); color: #1b1407; border-color: transparent; box-shadow: 0 6px 22px rgba(214, 170, 69, .22); }
.btn.gold:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(214, 170, 69, .35); }
.btn.line:hover { border-color: var(--gold); }
.btn.lg { height: 52px; padding: 0 26px; font-size: 14px; }
.btn.block { width: 100%; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--tx); cursor: pointer; font-size: 15px; }
.icon-btn:hover { border-color: var(--gold); }

/* sarlavha */
.hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 36px; height: auto; }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-size: 17px; letter-spacing: .04em; }
.brand small { font-size: 8.5px; letter-spacing: .38em; color: var(--gold); margin-top: 3px; }
.nav { display: flex; gap: 34px; margin: 0 auto; font-size: 13.5px; color: var(--tx2); }
.nav a:hover { color: var(--tx); }
.nav .nav-erp { display: none; }
.tools { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; color: var(--tx3); font: 700 10.5px var(--sans); width: 30px; height: 26px; border-radius: 999px; cursor: pointer; }
.lang button.on { background: var(--g-grad); color: #1b1407; }
.burger { display: none; }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%); opacity: .5; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; min-height: calc(100vh - 72px); max-height: 900px; padding-top: 40px; padding-bottom: 60px; }
.hero h1 { font-size: clamp(44px, 6vw, 84px); }
.hero h1 span { display: block; }
.hero h1 em { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.01em; margin-top: 6px;
  background: var(--g-grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.12; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.orbit { position: relative; aspect-ratio: 1; width: min(100%, 520px); justify-self: center; }
.ring { position: absolute; border-radius: 50%; border: 1px solid var(--line); }
.ring.r1 { inset: 0; } .ring.r2 { inset: 9%; border-color: var(--line2); }
.orbit .emblem { position: absolute; inset: 15%; width: 70%; height: auto; filter: drop-shadow(0 20px 60px rgba(214, 170, 69, .28)); animation: float 7s ease-in-out infinite; }
.spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 16px var(--gold); }
.s1 { top: 8%; left: 78%; } .s2 { bottom: 12%; left: 30%; }
.chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: color-mix(in srgb, var(--bg2) 92%, transparent);
  border: 1px solid var(--line2); border-radius: var(--r); font-size: 8.5px; font-weight: 700; letter-spacing: .14em; line-height: 1.45; color: var(--tx); backdrop-filter: blur(6px); }
.chip b { font-family: var(--serif); font-weight: 500; color: var(--gold); font-size: 20px; letter-spacing: 0; }
.chip .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--g-grad); }
.c1 { top: 18%; left: -6%; } .c2 { top: 47%; right: -8%; } .c3 { bottom: 12%; left: 8%; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* raqamlar */
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-in div { padding: 34px 24px; border-left: 1px solid var(--line); }
.stats-in div:first-child { border-left: 0; padding-left: 0; }
.stats-in b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(24px, 2.6vw, 34px); color: var(--gold2); line-height: 1.1; }
.stats-in span { display: block; margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--tx3); }
:root[data-theme="light"] .stats-in b { color: var(--gold); }

/* bo'limlar */
.sec { padding: 110px 0; position: relative; }
.about { background: var(--bg2); }
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: center; margin-top: 50px; }
.about-card { position: relative; aspect-ratio: 1; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.about-card img { width: 72%; height: auto; position: relative; }
.diamond { position: absolute; inset: 14%; border: 1px solid var(--line2); transform: rotate(45deg); }
.about-text { font-size: clamp(17px, 1.8vw, 21px); color: var(--tx2); line-height: 1.7; margin: 0; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.values small { display: block; color: var(--gold); font-size: 11px; }
.values b { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.count { color: var(--tx3); font-size: 11px; letter-spacing: .2em; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.card { position: relative; padding: 30px 28px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 250px;
  transition: background .25s; }
.card:hover { background: var(--bg2); }
.card .no { font-family: var(--serif); color: var(--gold); font-size: 14px; }
.card .go { position: absolute; top: 24px; right: 24px; width: 30px; height: 30px; border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--gold); font-size: 12px; transition: background .2s, color .2s; }
.card:hover .go { background: var(--g-grad); color: #1b1407; border-color: transparent; }
.card .eb { margin-top: 42px; font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--tx3); }
.card h3 { margin: 10px 0 0; font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.card h3::after { content: ""; display: block; width: 28px; height: 1px; background: var(--gold); margin: 18px 0; }
.card p { margin: 0; color: var(--tx3); font-size: 13.5px; }

.platforms { background: var(--bg); overflow: hidden; }
.rings-bg { position: absolute; right: -180px; top: -40px; width: 620px; height: 620px; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 22px, var(--line) 23px 24px); opacity: .7; pointer-events: none; }
.plats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; position: relative; }
.plat { display: flex; flex-direction: column; padding: 28px; min-height: 290px; background: var(--card); border: 1px solid var(--line); transition: border-color .25s, transform .25s; }
a.plat:hover { border-color: var(--gold); transform: translateY(-3px); }
.plat-top { display: flex; justify-content: space-between; align-items: center; }
.plat .code { background: var(--g-grad); color: #1b1407; font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 2px; }
.plat .no { font-family: var(--serif); color: var(--tx3); font-size: 18px; }
.plat h3 { margin: 42px 0 0; font-size: 30px; font-weight: 500; color: var(--gold2); letter-spacing: -.01em; }
:root[data-theme="light"] .plat h3 { color: var(--gold); }
.plat p { color: var(--tx3); font-size: 14px; margin: 14px 0 0; flex: 1; }
.plat .st { display: flex; align-items: center; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 10px; font-weight: 700; letter-spacing: .18em; color: var(--tx3); text-transform: uppercase; }
.plat .st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ecf6e; box-shadow: 0 0 10px #3ecf6e; }
.plat.dev .st::before { background: #7c7c6e; box-shadow: none; }
a.plat .st { color: var(--gold); }

.contact { background: var(--bg3); }
.contact-grid { display: grid; grid-template-columns: 1fr 440px; gap: 70px; align-items: start; }
.contacts { display: grid; grid-template-columns: repeat(3, auto); gap: 30px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.contacts small { display: block; font-size: 9.5px; letter-spacing: .2em; color: var(--tx3); }
.contacts a { font-weight: 700; font-size: 14px; word-break: break-word; }
.contacts a:hover { color: var(--gold); }
.form { background: var(--card); border: 1px solid var(--line); padding: 32px 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
.form label { display: block; margin-bottom: 22px; }
.form label span { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .2em; color: var(--tx3); margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--tx);
  font: 15px var(--sans); padding: 10px 2px; outline: none; border-radius: 0; resize: vertical; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--tx2) 50%), linear-gradient(135deg, var(--tx2) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.form select option { background: var(--bg2); color: var(--tx); }
.form input:focus, .form select:focus, .form textarea:focus { border-bottom-color: var(--gold); }
.form .bad { border-bottom-color: #e5484d; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 22px; margin: 14px 0 0; font-size: 13.5px; }
.form-msg.ok { color: #3ecf6e; } .form-msg.err { color: #ff7a7a; }

.ftr { border-top: 1px solid var(--line); background: var(--bg); }
.ftr-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 30px; padding-bottom: 30px; font-size: 12px; color: var(--tx3); }
.ftr-in p { margin: 0; }
.ftr-links { display: flex; gap: 24px; }
.ftr-links a:hover { color: var(--gold); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .orbit .emblem { animation: none; } html { scroll-behavior: auto; } }

/* moslashuv */
@media (max-width: 1020px) {
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; transform: translateY(-120%); transition: transform .3s; margin: 0; font-size: 16px; }
  .nav.open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .nav-erp { display: inline-flex; margin-top: 16px; border-bottom: 0; }
  .nav .nav-erp.line { border: 1px solid var(--line2); }
  .burger { display: inline-block; }
  .tools { margin-left: auto; }
  .hero-in { grid-template-columns: 1fr; min-height: 0; max-height: none; padding-top: 48px; }
  .orbit { width: min(86%, 420px); order: -1; }
  .c1 { left: -4%; } .c2 { right: -4%; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-card { max-width: 300px; }
  .cards, .plats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hdr-in { gap: 10px; }
  .tools { gap: 6px; }
  .hdr-erp { height: 34px; padding: 0 10px; font-size: 11.5px; gap: 6px; }
  .hdr-login { display: none; }
  #theme { display: none; }
  .brand b { font-size: 15px; } .brand img { width: 30px; }
  .lang button { width: 26px; }
  .stats-in { grid-template-columns: 1fr 1fr; }
  .stats-in div { padding: 22px 12px; border-left: 0; border-top: 1px solid var(--line); }
  .stats-in div:nth-child(-n+2) { border-top: 0; }
  .stats-in div:nth-child(odd) { padding-left: 0; }
  .cards, .plats { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .sec { padding: 72px 0; }
  .contacts { grid-template-columns: 1fr; gap: 16px; }
  .form { padding: 24px 18px; }
  .ftr-in { flex-direction: column; text-align: center; }
  .chip { font-size: 7.5px; padding: 8px 10px; } .chip b { font-size: 16px; }
}

/* Tizimga kirish sahifasi (/login) */
.login-page { min-height: 100vh; display: flex; flex-direction: column; }
.back-link { font-size: 13px; color: var(--tx2); margin-right: 6px; }
.back-link:hover { color: var(--gold); }
.login-main { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 16px 64px; overflow: hidden; }
.login-main .grid-bg { opacity: .55; }
.login-card { position: relative; width: 100%; max-width: 440px; text-align: center; }
.login-emblem { display: block; margin: 0 auto; width: 64px; height: auto; filter: drop-shadow(0 8px 26px rgba(214, 170, 69, .35)); }
.login-brand { margin: 14px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .32em; color: var(--gold); }
.login-card h1 { margin: 10px 0 26px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(32px, 6vw, 42px); line-height: 1.1;
  background: var(--g-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-form { text-align: left; }
.login-sub { margin: 0 0 24px; color: var(--tx2); font-size: 14px; line-height: 1.55; }
.pw { position: relative; }
.pw input { padding-right: 96px; }
.pw-toggle { position: absolute; right: 0; bottom: 30px; border: 0; background: none; color: var(--gold); font: 700 12px var(--sans); cursor: pointer; padding: 6px 4px; }
.pw-toggle:hover { color: var(--gold2); }
.login-hint { margin: 4px 0 0; font-size: 12px; color: var(--tx3); }
.code-input { letter-spacing: .5em; font-size: 22px !important; text-align: center; }
.link-btn { border: 0; background: none; color: var(--tx2); font: 13.5px var(--sans); cursor: pointer; padding: 6px 0; }
.link-btn:hover, .login-links a:hover { color: var(--gold); }
.login-form .link-btn { display: block; margin: 6px auto 0; }
.login-links { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; font-size: 13.5px; color: var(--tx2); }
.forgot-box { margin-top: 14px; padding: 18px; text-align: left; background: var(--card); border: 1px solid var(--line2); font-size: 13.5px; color: var(--tx2); }
.forgot-box p { margin: 0 0 14px; }
.forgot-contacts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0 0 !important; font-weight: 700; color: var(--tx); }
.forgot-contacts a:hover { color: var(--gold); }
.login-note { margin: 26px auto 0; max-width: 380px; font-size: 12px; line-height: 1.6; color: var(--tx3); }
@media (max-width: 640px) {
  .back-link { display: none; }
  .login-main { padding: 28px 16px 40px; align-items: flex-start; }
  .login-links { flex-direction: column; align-items: center; gap: 6px; }
}
[hidden] { display: none !important; }
@media (max-width: 400px) {
  .hdr:not(.login-hdr) .brand span { display: none; }
}
