/* ==========================================================================
   P RoboAI — Industrial Automation & Robotics
   Design System / Global Stylesheet
   Mobile-first, fast, accessible. Light + Dark mode.
   ========================================================================== */

:root {
  /* Brand palette — industrial steel + safety amber */
  --c-bg: #ffffff;
  --c-bg-alt: #f4f6f9;
  --c-bg-elev: #ffffff;
  --c-surface: #ffffff;
  --c-border: #e2e7ee;
  --c-text: #0e1726;
  --c-text-soft: #475569;
  --c-text-mute: #6b7787;
  --c-primary: #0b5cff;        /* engineering blue */
  --c-primary-700: #0746c9;
  --c-accent: #ff7a00;         /* safety amber — CTA */
  --c-accent-700: #e56a00;
  --c-steel: #1b2433;          /* dark steel */
  --c-steel-2: #232f42;
  --c-success: #11a36b;
  --c-ring: rgba(11, 92, 255, .28);

  --shadow-sm: 0 1px 2px rgba(14,23,38,.06), 0 1px 3px rgba(14,23,38,.08);
  --shadow-md: 0 6px 18px rgba(14,23,38,.10);
  --shadow-lg: 0 20px 50px rgba(14,23,38,.16);

  --radius: 12px;
  --radius-lg: 18px;
  --maxw: 1180px;
  --gap: clamp(1rem, 3vw, 2rem);
  --section-y: clamp(3.5rem, 7vw, 6rem);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

[data-theme="dark"] {
  --c-bg: #0c1320;
  --c-bg-alt: #111a2b;
  --c-bg-elev: #14203a;
  --c-surface: #14203a;
  --c-border: #243149;
  --c-text: #eef3fb;
  --c-text-soft: #c2cde0;
  --c-text-mute: #93a1b8;
  --c-primary: #4d8bff;
  --c-primary-700: #2f6fff;
  --c-accent: #ff8c2b;
  --c-accent-700: #ff7a00;
  --c-steel: #0a1019;
  --c-steel-2: #111a2b;
  --shadow-md: 0 6px 18px rgba(0,0,0,.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.15; color: var(--c-text); font-weight: 800; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1rem; color: var(--c-text-soft); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--c-bg-alt); }
.section--steel { background: var(--c-steel); color: #e9eef7; }
.section--steel h2, .section--steel h3 { color: #fff; }
.section--steel p { color: #b9c4d6; }

.eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-primary); margin-bottom: .65rem; }
.section--steel .eyebrow { color: var(--c-accent); }
.lead { font-size: 1.18rem; color: var(--c-text-soft); max-width: 60ch; }
.center { text-align: center; }
.center .lead, .center p { margin-inline: auto; }

/* Buttons ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-head); font-weight: 700; font-size: .98rem; padding: .85rem 1.4rem; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s; text-decoration: none; line-height: 1; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--c-accent); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--c-accent-700); }
.btn--blue { background: var(--c-primary); color: #fff; }
.btn--blue:hover { background: var(--c-primary-700); }
.btn--ghost { background: transparent; color: var(--c-text); border-color: var(--c-border); }
.btn--ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn--light { background: #fff; color: var(--c-steel); }
.btn--lg { padding: 1.05rem 1.8rem; font-size: 1.05rem; }
.btn--block { width: 100%; justify-content: center; }

/* Header ----------------------------------------------------------------- */
.topbar { background: var(--c-steel); color: #cfd8e6; font-size: .82rem; }
.topbar .container { display: flex; gap: 1.2rem; align-items: center; justify-content: space-between; padding-block: .5rem; flex-wrap: wrap; }
.topbar a { color: #e7edf6; }
.topbar__contact { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.topbar__contact span { display: inline-flex; gap: .4rem; align-items: center; }

.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--c-bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--c-border); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--c-text); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 38px; height: 38px; border-radius: 9px; background: linear-gradient(135deg, var(--c-primary), var(--c-accent)); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.05rem; box-shadow: var(--shadow-sm); }
.brand small { display: block; font-family: var(--font); font-weight: 500; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-text-mute); }

.nav__links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__links > li { position: relative; }
.nav__links a { color: var(--c-text-soft); font-weight: 600; font-size: .95rem; padding: .55rem .7rem; border-radius: 8px; display: inline-flex; align-items: center; gap: .3rem; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--c-primary); background: var(--c-bg-alt); text-decoration: none; }
.dropdown__menu { position: absolute; top: 100%; left: 0; min-width: 270px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .5rem; list-style: none; margin: .4rem 0 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s; }
.dropdown:hover .dropdown__menu, .dropdown:focus-within .dropdown__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__menu a { display: block; padding: .6rem .7rem; font-size: .9rem; border-radius: 8px; }
.nav__actions { display: flex; align-items: center; gap: .6rem; }
.theme-toggle { background: var(--c-bg-alt); border: 1px solid var(--c-border); width: 40px; height: 40px; border-radius: 9px; cursor: pointer; display: grid; place-items: center; color: var(--c-text); font-size: 1.1rem; }
.nav__toggle { display: none; background: var(--c-bg-alt); border: 1px solid var(--c-border); width: 44px; height: 44px; border-radius: 9px; cursor: pointer; color: var(--c-text); }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; margin: 0 auto; transition: .2s; }
.nav__toggle span::before { content: ""; position: absolute; top: -6px; }
.nav__toggle span::after { content: ""; position: absolute; top: 6px; }

@media (max-width: 980px) {
  .nav__cta-desktop { display: none; }
  .nav__toggle { display: block; }
  .nav__links { position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); flex-direction: column; align-items: stretch; gap: .15rem; background: var(--c-surface); padding: 5rem 1.1rem 2rem; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; z-index: 70; }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { padding: .8rem .6rem; font-size: 1.05rem; }
  .dropdown__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 .4rem .8rem; min-width: 0; }
  .nav__overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: .2s; z-index: 65; }
  .nav__overlay.open { opacity: 1; visibility: visible; }
}

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; background: linear-gradient(110deg, rgba(12,19,32,.95) 0%, rgba(12,19,32,.86) 48%, rgba(12,19,32,.66) 100%), radial-gradient(1200px 600px at 80% -10%, rgba(11,92,255,.18), transparent 60%), url("../img/hero-smart-factory.jpg") center right / cover no-repeat, var(--c-steel); color: #fff; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(700px 400px at 75% 0%, #000, transparent 75%); pointer-events: none; }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero h1 { color: #fff; }
.hero h1 span { color: var(--c-accent); }
.hero p { color: #c4cfe0; font-size: 1.18rem; max-width: 52ch; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.4rem 0; }
.hero__badge { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #dbe4f1; font-size: .82rem; font-weight: 600; padding: .4rem .8rem; border-radius: 100px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero__stats { display: flex; gap: 1.8rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero__stat b { font-family: var(--font-head); font-size: 1.8rem; color: #fff; display: block; }
.hero__stat span { font-size: .82rem; color: #9fb0c8; }

/* Hero inquiry card */
.lead-card { background: var(--c-surface); color: var(--c-text); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-lg); border: 1px solid var(--c-border); }
.lead-card h3 { margin-bottom: .25rem; }
.lead-card p.small { font-size: .85rem; color: var(--c-text-mute); margin-bottom: 1rem; }

/* Forms ------------------------------------------------------------------ */
.field { margin-bottom: .85rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .3rem; color: var(--c-text-soft); }
.field input, .field select, .field textarea { width: 100%; padding: .75rem .85rem; border: 1.5px solid var(--c-border); border-radius: 9px; background: var(--c-bg); color: var(--c-text); font-family: inherit; font-size: .95rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-ring); }
.field textarea { min-height: 92px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.form-note { font-size: .76rem; color: var(--c-text-mute); margin-top: .6rem; }
.form-success { background: color-mix(in srgb, var(--c-success) 12%, transparent); border: 1px solid var(--c-success); color: var(--c-success); padding: .8rem; border-radius: 9px; font-weight: 600; font-size: .9rem; margin-top: .8rem; }
.hp-field { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* Content media figure (diagrams / photos) */
.media-figure { margin: 1.6rem 0; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; background: var(--c-surface); box-shadow: var(--shadow-sm); }
.media-figure img { width: 100%; height: auto; display: block; }
.media-figure figcaption { font-size: .85rem; color: var(--c-text-mute); padding: .7rem 1rem; border-top: 1px solid var(--c-border); }

/* Grid utilities --------------------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .hero .container { grid-template-columns: 1fr; } .hero__visual { order: -1; } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* Cards ------------------------------------------------------------------ */
.card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .2s, border-color .2s; height: 100%; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--c-primary) 40%, var(--c-border)); }
.card__icon { width: 50px; height: 50px; border-radius: 12px; background: color-mix(in srgb, var(--c-primary) 12%, transparent); color: var(--c-primary); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 1rem; }
.card h3 { font-size: 1.18rem; margin-bottom: .4rem; }
.card p { font-size: .94rem; margin-bottom: .8rem; }
.card a.more { font-weight: 700; font-size: .9rem; font-family: var(--font-head); }
.card--link { display: block; color: inherit; }
.card--link:hover { text-decoration: none; }

/* Feature list / checks -------------------------------------------------- */
.checks { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .6rem; }
.checks li { display: flex; gap: .6rem; align-items: flex-start; color: var(--c-text-soft); }
.checks li::before { content: "✓"; color: var(--c-success); font-weight: 800; flex: none; }
.section--steel .checks li { color: #cdd8e8; }

/* Stats band ------------------------------------------------------------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat-band b { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--c-primary); display: block; }
.section--steel .stat-band b { color: var(--c-accent); }
.stat-band span { font-size: .9rem; color: var(--c-text-mute); }
@media (max-width: 600px){ .stat-band { grid-template-columns: 1fr 1fr; } }

/* Process / steps -------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1.1rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.step__num { counter-increment: step; width: 42px; height: 42px; border-radius: 50%; background: var(--c-primary); color: #fff; font-family: var(--font-head); font-weight: 800; display: grid; place-items: center; }
.step__num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.step p { margin: 0; font-size: .92rem; }

/* Logos / trust ---------------------------------------------------------- */
.logos { display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem; align-items: center; justify-content: center; opacity: .8; }
.logos span { font-family: var(--font-head); font-weight: 700; color: var(--c-text-mute); font-size: 1.05rem; }

/* Testimonials ----------------------------------------------------------- */
.quote { background: var(--c-surface); border: 1px solid var(--c-border); border-left: 4px solid var(--c-accent); border-radius: var(--radius); padding: 1.5rem; }
.quote p { font-size: 1.02rem; color: var(--c-text); font-style: italic; }
.quote footer { font-size: .88rem; color: var(--c-text-mute); font-style: normal; }
.quote footer b { color: var(--c-text); display: block; font-style: normal; }

/* FAQ -------------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border: 1px solid var(--c-border); border-radius: var(--radius); margin-bottom: .7rem; background: var(--c-surface); overflow: hidden; }
.faq__q { width: 100%; text-align: left; background: none; border: none; padding: 1.05rem 1.2rem; font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--c-text); cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq__q::after { content: "+"; font-size: 1.4rem; color: var(--c-primary); transition: transform .2s; flex: none; }
.faq__item.open .faq__q::after { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq__a p { padding: 0 1.2rem 1.1rem; margin: 0; font-size: .95rem; }
.faq__item.open .faq__a { max-height: 400px; }

/* CTA band --------------------------------------------------------------- */
.cta-band { background: linear-gradient(135deg, var(--c-primary), var(--c-primary-700)); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbe6ff; max-width: 56ch; margin-inline: auto; }
.cta-band .hero__cta { justify-content: center; }

/* Breadcrumb / page hero ------------------------------------------------- */
.page-hero { background: var(--c-steel); color: #fff; padding-block: clamp(2.5rem, 5vw, 4rem); position: relative; }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero p { color: #c4cfe0; max-width: 60ch; }
.breadcrumb { font-size: .82rem; color: #9fb0c8; margin-bottom: .8rem; }
.breadcrumb a { color: #c4cfe0; }

/* Two-col content -------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px){ .split { grid-template-columns: 1fr; } }
.sticky-side { position: sticky; top: 90px; }

/* Tags */
.taglist { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.tag { background: var(--c-bg-alt); border: 1px solid var(--c-border); color: var(--c-text-soft); font-size: .8rem; font-weight: 600; padding: .35rem .7rem; border-radius: 100px; }

/* Sticky mobile contact bar --------------------------------------------- */
.mobile-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 80; display: none; grid-template-columns: 1fr 1fr 1fr; background: var(--c-surface); border-top: 1px solid var(--c-border); box-shadow: 0 -4px 20px rgba(0,0,0,.12); }
.mobile-bar a { padding: .8rem .4rem; text-align: center; font-size: .76rem; font-weight: 700; color: var(--c-text); display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.mobile-bar a:hover { text-decoration: none; }
.mobile-bar a span { font-size: 1.2rem; }
.mobile-bar a.call { color: var(--c-primary); }
.mobile-bar a.wa { color: var(--c-success); }
.mobile-bar a.quote { color: var(--c-accent); }
@media (max-width: 720px){ .mobile-bar { display: grid; } body { padding-bottom: 64px; } }

/* Floating WhatsApp (desktop) */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 75; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); font-size: 1.6rem; }
.wa-float:hover { text-decoration: none; transform: scale(1.06); }
@media (max-width: 720px){ .wa-float { display: none; } }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--c-steel); color: #b9c4d6; padding-block: clamp(3rem, 5vw, 4rem) 1.5rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2rem; }
.site-footer a { color: #b9c4d6; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: #8696ad; }
.footer-brand .brand { color: #fff; margin-bottom: .8rem; }
.social-row { display: flex; gap: .55rem; margin: 1rem 0 .2rem; }
.social-link { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #cfd8e6; transition: transform .15s, background .15s, color .15s; }
.social-link:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); text-decoration: none; transform: translateY(-2px); }
.social-link svg { width: 19px; height: 19px; fill: currentColor; display: block; }
.footer-nap { font-size: .9rem; line-height: 1.8; }
.footer-nap strong { color: #fff; }
@media (max-width: 800px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px){ .footer-grid { grid-template-columns: 1fr; } }

/* Misc */
.mt-0{margin-top:0}.mb-0{margin-bottom:0}.mt-2{margin-top:2rem}
.visually-hidden { position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0); }
.divider { height:1px; background: var(--c-border); margin-block: var(--section-y); }
.pill-row { display:flex; flex-wrap:wrap; gap:.5rem; }
@media (prefers-reduced-motion: reduce){ * { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
