/* UdyogHub landing page. Brand: indigo #1F2A6B, saffron #F5A524 (brand/README.md). */
:root {
  --indigo: #1f2a6b;
  --indigo-2: #2a3a8f;
  --indigo-deep: #141c4d;
  --saffron: #f5a524;
  --saffron-dark: #d88a10;
  --ink: #0f172a;
  --muted: #5b6478;
  --line: #e3e7f1;
  --canvas: #f6f7fb;
  --white: #ffffff;
  --green: #16a34a;
  --red: #dc2626;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(20, 28, 77, 0.1);
  --font-body: 'Inter', 'Noto Sans Gujarati', 'Noto Sans Devanagari', system-ui, sans-serif;
  --font-head: 'Poppins', 'Noto Sans Gujarati', 'Noto Sans Devanagari', system-ui, sans-serif;
}
html[lang='gu'] { --font-body: 'Noto Sans Gujarati', 'Inter', system-ui, sans-serif; --font-head: 'Noto Sans Gujarati', 'Poppins', system-ui, sans-serif; }
html[lang='hi'] { --font-body: 'Noto Sans Devanagari', 'Inter', system-ui, sans-serif; --font-head: 'Noto Sans Devanagari', 'Poppins', system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.1rem; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--saffron); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 12px; font-weight: 600; text-decoration: none;
  border: 2px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-size: 1rem; min-height: 48px; cursor: pointer;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, .lang button:focus-visible, .tabs button:focus-visible, .web-picker button:focus-visible, summary:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }
.btn-accent { background: var(--saffron); color: var(--indigo-deep); box-shadow: 0 8px 20px rgba(245, 165, 36, 0.35); }
.btn-accent:hover { background: #ffb53a; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-sm { padding: 8px 14px; min-height: 40px; font-size: 0.92rem; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(20, 28, 77, 0.92); backdrop-filter: blur(10px); color: var(--white); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--white); }
.wordmark span { color: var(--saffron); }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { text-decoration: none; opacity: 0.85; font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { opacity: 1; color: var(--saffron); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 10px; overflow: hidden; }
.lang button { background: none; border: 0; color: var(--white); padding: 7px 10px; font: inherit; font-size: 0.85rem; cursor: pointer; min-width: 44px; min-height: 36px; }
.lang button[aria-pressed='true'] { background: var(--white); color: var(--indigo); font-weight: 700; }

/* hero */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: radial-gradient(1200px 500px at 85% -10%, #3446a8 0%, transparent 60%),
              radial-gradient(800px 400px at -10% 110%, #2b3a90 0%, transparent 60%), var(--indigo);
  padding: 56px 0 40px;
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; color: var(--saffron); margin: 0 0 12px; }
html[lang='gu'] .eyebrow, html[lang='hi'] .eyebrow { letter-spacing: 0.02em; text-transform: none; font-size: 0.95rem; }
.eyebrow.dark { color: var(--saffron-dark); }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin-bottom: 18px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #d9def7; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.cta-row.center { justify-content: center; }
.hero-note { color: #b9c1ea; font-size: 0.95rem; }

.scene-card {
  position: relative; border-radius: 26px; padding: 18px 18px 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 30px 60px rgba(5, 10, 40, 0.45);
}
.factory { width: 100%; height: auto; display: block; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; background: rgba(0, 0, 0, 0.25); padding: 6px 12px; border-radius: 999px; }
.live .dot { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.7); animation: ping 1.6s infinite; }

.toasts { position: absolute; right: 14px; top: 14px; width: min(300px, 70%); pointer-events: none; }
.toast {
  display: flex; gap: 10px; align-items: flex-start; background: var(--white); color: var(--ink);
  border-radius: 14px; padding: 10px 12px; box-shadow: 0 14px 30px rgba(5, 10, 40, 0.35);
  font-size: 0.82rem; line-height: 1.35; opacity: 0; transform: translateY(-10px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.toast.show { opacity: 1; transform: none; }
.toast strong { display: block; font-size: 0.86rem; margin-bottom: 2px; }
.toast-icon { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; background: #eef1ff; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 38px; }
.stat { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; padding: 16px 18px; }
.stat strong { display: block; font-family: 'Poppins', sans-serif; font-size: 1.8rem; color: var(--saffron); line-height: 1.1; }
.stat span { color: #d1d7f3; font-size: 0.92rem; }

/* factory animation */
.spin { animation: spin 14s linear infinite; transform-box: fill-box; transform-origin: center; }
.spin.slow { animation-duration: 26s; }
.spin.fast { animation-duration: 1.4s; }
.spin.reverse { animation-direction: reverse; }
.smoke circle { opacity: 0; animation: smoke 3.9s ease-out infinite; animation-delay: var(--d); transform-box: fill-box; transform-origin: center; }
.windows rect { fill: url(#glow); animation: flicker 3.5s ease-in-out infinite; animation-delay: var(--d); }
.blink { animation: blink 1.4s ease-in-out infinite; }
.belt { animation: belt 0.9s linear infinite; }
.box { animation: travel 9s linear infinite; animation-delay: var(--d); }
.press { animation: press 2.25s ease-in-out infinite; animation-delay: -0.05s; }
.spark { opacity: 0; animation: spark 2.25s ease-out infinite; animation-delay: -0.05s; transform-box: fill-box; transform-origin: center; }
.pulse-line { stroke-dasharray: 60; animation: trace 2.2s linear infinite; }
.scan { animation: scan 2s ease-in-out infinite; }
.bell { animation: ring 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 0; }
.pop { animation: pop 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes smoke { 0% { opacity: 0.55; transform: translate(0, 0) scale(0.6); } 100% { opacity: 0; transform: translate(18px, -90px) scale(2.4); } }
@keyframes flicker { 0%, 100% { opacity: 0.95; } 45% { opacity: 0.7; } 50% { opacity: 1; } 70% { opacity: 0.82; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes belt { to { stroke-dashoffset: -26; } }
@keyframes travel { 0% { transform: translateX(-60px); } 100% { transform: translateX(680px); } }
@keyframes press { 0%, 18%, 100% { transform: translateY(0); } 8% { transform: translateY(20px); } }
@keyframes spark { 0%, 6% { opacity: 0; transform: scale(0.3); } 9% { opacity: 0.85; transform: scale(1); } 20% { opacity: 0; transform: scale(1.6); } 100% { opacity: 0; } }
@keyframes trace { from { stroke-dashoffset: 60; } to { stroke-dashoffset: -60; } }
@keyframes scan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(26px); } }
@keyframes ring { 0%, 60%, 100% { transform: rotate(0); } 65% { transform: rotate(12deg); } 72% { transform: rotate(-10deg); } 79% { transform: rotate(6deg); } 86% { transform: rotate(-3deg); } }
@keyframes pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.7); } 80%, 100% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } }

/* sections */
.section { padding: 80px 0; }
.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); }

.problems { background: var(--canvas); }
.problems h2, .problems .answer, .how h2, .features h2, .langs h2, .langs .sub, .trust h2, .faq h2 { text-align: center; }
.how .eyebrow, .features .eyebrow { text-align: center; }
.problem { text-align: left; }
.problem .emoji { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.problem p { color: var(--ink); font-weight: 500; }
.answer { margin: 30px auto 0; max-width: 40em; font-size: 1.2rem; font-weight: 600; color: var(--indigo); }

.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; background: var(--canvas); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.step-art svg { width: 120px; height: 90px; display: block; margin-bottom: 10px; }
.step-no { position: absolute; top: 18px; right: 20px; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 2.4rem; color: rgba(31, 42, 107, 0.12); }
.step p { margin: 0; color: var(--muted); }

.features { background: var(--canvas); }
.feature .ficon { font-size: 1.6rem; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #eef1ff; margin-bottom: 12px; transition: transform 0.2s ease; }
.feature:hover .ficon { transform: rotate(-8deg) scale(1.08); }
.feature h3 { color: var(--indigo); }

.screens { background: linear-gradient(180deg, var(--indigo) 0%, var(--indigo-deep) 100%); color: var(--white); }
.screens h2, .screens .eyebrow { text-align: center; }
.tabs { display: flex; justify-content: center; gap: 8px; margin: 18px 0 30px; }
.tabs button { background: rgba(255, 255, 255, 0.1); color: var(--white); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; }
.tabs button[aria-selected='true'] { background: var(--saffron); border-color: var(--saffron); color: var(--indigo-deep); }
.phones-row { display: grid; grid-template-columns: repeat(3, minmax(0, 250px)); justify-content: center; gap: 34px 40px; padding: 6px 4px 18px; }
.phones-row[hidden], .web-panel[hidden] { display: none; }
.phone-fig { margin: 0; scroll-snap-align: center; text-align: center; }
.phone-fig figcaption { margin-top: 12px; font-size: 0.92rem; color: #cfd5f3; }
.phone { border-radius: 34px; padding: 9px; background: #0b1030; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), inset 0 0 0 2px #2a3570; position: relative; }
.phone::before { content: ''; position: absolute; top: 15px; left: 50%; width: 30%; height: 14px; transform: translateX(-50%); background: #0b1030; border-radius: 10px; z-index: 2; }
.phone img { border-radius: 26px; aspect-ratio: 640 / 1391; width: 100%; object-fit: cover; object-position: top; background: #fff; }
.web-panel { max-width: 1000px; margin: 0 auto; }
.browser { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #e9ecf6; }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: #f87171; }
.browser-bar span:nth-child(2) { background: #fbbf24; }
.browser-bar span:nth-child(3) { background: #34d399; }
.browser-bar .url { margin-left: 14px; background: #fff; color: var(--muted); font-size: 0.8rem; padding: 4px 12px; border-radius: 8px; flex: 1; max-width: 360px; }
.browser img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; object-position: top; transition: opacity 0.35s ease; }
.browser img.fading { opacity: 0.2; }
.web-picker { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.web-picker button { background: transparent; color: #d9def7; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 10px; padding: 8px 14px; font: inherit; font-size: 0.92rem; cursor: pointer; min-height: 40px; }
.web-picker button.active { background: var(--white); color: var(--indigo); font-weight: 700; }

.langs .sub { color: var(--muted); max-width: 40em; margin: 0 auto; }
.lang-phones { display: flex; justify-content: center; align-items: flex-end; gap: 28px; margin-top: 36px; }
.lang-phones .phone-fig { width: 240px; }
.lang-phones .phone-fig.raised { transform: translateY(-24px); }
.lang-phones figcaption { color: var(--indigo); font-weight: 700; font-size: 1.1rem; }

.trust { background: var(--canvas); }
.trust h3 { color: var(--indigo); }

.pricing-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; background: linear-gradient(135deg, var(--indigo) 0%, #2d3d98 100%); color: var(--white); border-radius: 28px; padding: 44px; box-shadow: var(--shadow); }
.pricing-card .eyebrow { color: var(--saffron); }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 32px; position: relative; color: #e2e6fa; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--saffron); color: var(--indigo-deep); font-weight: 700; display: grid; place-items: center; font-size: 0.8rem; }
.pricing-cta { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 20px; padding: 24px; text-align: center; }
.durations { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.durations span { border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 12px; padding: 10px; font-weight: 600; }
.durations .best { background: var(--saffron); color: var(--indigo-deep); border-color: var(--saffron); }
.small { font-size: 0.85rem; color: #c8cff0; margin: 12px 0 0; }

.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 12px; background: var(--white); }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 10px; font-size: 1.4rem; color: var(--saffron-dark); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); }

.final { background: radial-gradient(700px 300px at 50% 0%, #3446a8, transparent 70%), var(--indigo-deep); color: var(--white); padding: 80px 0; text-align: center; }
.final-mark { margin: 0 auto 16px; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.footer { background: #0c1238; color: #aeb6de; padding: 26px 0; font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer p { margin: 0; }
.footer a { color: #dfe4ff; }
.small-brand .wordmark { font-size: 1.05rem; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid.three { grid-template-columns: repeat(2, 1fr); }
  .grid.four, .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .pricing-card { grid-template-columns: 1fr; padding: 28px; }
  .nav-links { display: none; }
  .phones-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(200px, 230px); justify-content: start; overflow-x: auto; scroll-snap-type: x mandatory; }
}
@media (max-width: 600px) {
  .grid.three, .grid.four { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat strong { font-size: 1.4rem; }
  .section { padding: 56px 0; }
  .hero { padding-top: 32px; }
  .nav-cta { display: none; }
  .lang-phones { gap: 10px; }
  .lang-phones .phone-fig { width: 33%; }
  .lang-phones .phone-fig.raised { transform: translateY(-12px); }
  .phone { border-radius: 22px; padding: 5px; }
  .phone img { border-radius: 18px; }
  .phone::before { top: 9px; height: 8px; }
  .toasts { width: auto; left: 14px; right: 14px; top: 58px; }
  .toast { font-size: 0.75rem; }
  .btn { width: 100%; justify-content: center; }
  .cta-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .smoke circle { opacity: 0.35; }
  .box:nth-child(1) { transform: translateX(80px); }
  .box:nth-child(2) { transform: translateX(240px); }
  .box:nth-child(3) { transform: translateX(400px); }
  .box:nth-child(4) { transform: translateX(560px); }
}
