/* ===== Robynex Automation — brand stylesheet ===== */
:root {
  --bg:        #0e1a1a;
  --bg-alt:    #122322;
  --surface:   #16302e;
  --surface-2: #1c3b38;
  --border:    #244440;
  --text:      #e7f2f0;
  --muted:     #92b3ae;
  --teal:      #12a89d;
  --teal-bright:#2fd3c0;
  --teal-deep: #0c7d74;
  --grad:      linear-gradient(120deg, #2fd3c0, #12a89d, #0c7d74);
  --radius:    16px;
  --maxw:      1120px;
  --ease:      cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand-name {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--teal); color: #04100f; padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn-primary {
  background: var(--grad); color: #04100f;
  box-shadow: 0 8px 24px -8px rgba(18,168,157,.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(47,211,192,.7); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-bright); transform: translateY(-2px); }

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(14,26,26,.85);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand img { border-radius: 8px; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: .01em; line-height: 1; display: inline-flex; align-items: baseline; gap: 6px; }
.brand-sub { font-family: "Inter", sans-serif; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-bright); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 15px; color: var(--muted); transition: color .2s var(--ease); }
.nav a:hover { color: var(--text); }
.nav .nav-cta {
  color: var(--text); border: 1px solid var(--border); padding: 9px 20px; border-radius: 999px;
}
.nav .nav-cta:hover { border-color: var(--teal); color: var(--teal-bright); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero — bold centered statement + gear motif ===== */
.hero { position: relative; padding: 200px 0 120px; overflow: hidden; text-align: center; }
.hero-inner { position: relative; z-index: 3; max-width: 860px; margin: 0 auto; }
.hero-motif {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -54%);
  width: min(760px, 116vw); aspect-ratio: 1; z-index: 1; pointer-events: none;
  display: grid; place-items: center;
}
.gear-glow {
  position: absolute; width: 62%; height: 62%; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(18,168,157,.28), rgba(47,211,192,.05) 45%, transparent 70%);
  filter: blur(8px);
}
.gear-ring {
  position: relative; width: 100%; height: 100%; color: var(--teal);
  opacity: .5; filter: drop-shadow(0 0 30px rgba(18,168,157,.28));
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gear-ring { animation: none; } }

.hero-circuit {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 72% 66% at 50% 42%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 72% 66% at 50% 42%, #000 20%, transparent 72%);
}

.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--teal-bright); margin: 0 0 22px; font-weight: 600;
}
.hero h1 { font-size: clamp(2.8rem, 8vw, 5.4rem); font-weight: 700; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--muted); margin: 28px auto 0; max-width: 620px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }

/* ===== Marquee ===== */
.strip { border-block: 1px solid var(--border); background: var(--bg-alt); overflow: hidden; padding: 16px 0; }
.strip-track {
  display: flex; align-items: center; gap: 28px; white-space: nowrap; width: max-content;
  animation: marquee 30s linear infinite;
  font-family: "Space Grotesk", sans-serif; font-size: 15px; color: var(--text); letter-spacing: .05em; text-transform: uppercase;
}
.strip-track .dot { color: var(--teal-bright); font-size: 11px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.kicker { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-bright); font-weight: 600; margin: 0 0 14px; }
.section-head { max-width: 720px; margin: 0 0 60px; }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.section-head .lead { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }

/* ===== Capabilities — cards ===== */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px);
  padding: 38px 36px; position: relative; overflow: hidden;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.card:hover { border-color: var(--teal-deep); background: var(--surface-2); transform: translateY(-4px); }
.card:hover::before { transform: scaleX(1); }
.card-ico {
  width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: radial-gradient(circle at 40% 35%, rgba(18,168,157,.22), transparent 70%);
  border: 1px solid rgba(18,168,157,.28); color: var(--teal-bright);
}
.card-ico svg { width: 30px; height: 30px; }
.card h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-bottom: 12px; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }

/* ===== Process — horizontal flow ===== */
.flow {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative;
}
.flow::before {
  content: ""; position: absolute; top: 68px; left: 16%; right: 16%; height: 2px;
  background: linear-gradient(90deg, var(--teal-deep), var(--teal-bright), var(--teal-deep));
  opacity: .5; z-index: 0;
}
.flow-node {
  position: relative; z-index: 1; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 26px 30px; transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.flow-node:hover { border-color: var(--teal-deep); transform: translateY(-4px); }
.flow-num {
  font-family: "Space Grotesk", sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .14em;
  color: var(--teal-bright);
}
.flow-dot {
  width: 64px; height: 64px; border-radius: 50%; margin: 14px auto 20px;
  display: grid; place-items: center; color: var(--teal-bright);
  background: var(--bg); border: 2px solid var(--teal-deep);
  box-shadow: 0 0 0 6px rgba(18,168,157,.08);
}
.flow-dot svg { width: 30px; height: 30px; }
.flow-node h3 { font-size: 1.4rem; margin-bottom: 12px; }
.flow-node p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ===== Stats band ===== */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 32px; position: relative;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.stat:hover { border-color: var(--teal-deep); transform: translateY(-4px); }
.stat-label {
  display: block; font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 14px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-desc { color: var(--muted); margin: 0; font-size: 1rem; }

/* ===== FAQ accordion ===== */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq-head { margin: 0; position: sticky; top: 100px; }
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color .3s var(--ease);
}
.faq-item.open { border-color: var(--teal-deep); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; cursor: pointer; text-align: left; color: var(--text);
  font-family: "Space Grotesk", sans-serif; font-size: 1.1rem; font-weight: 600; padding: 22px 24px;
}
.faq-q:hover { color: var(--teal-bright); }
.faq-ico { position: relative; flex: 0 0 auto; width: 16px; height: 16px; }
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; background: var(--teal); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq-ico::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-ico::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq-item.open .faq-ico::after { transform: scaleY(0); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 360px; }
.faq-a p { color: var(--muted); margin: 0; padding: 0 24px 24px; font-size: .98rem; }

/* ===== Contact ===== */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 16px; }
.contact-copy p { color: var(--muted); margin-bottom: 22px; }
.contact-email { display: inline-block; font-family: "Space Grotesk", sans-serif; font-size: 1.25rem; color: var(--teal-bright); border-bottom: 1px solid transparent; transition: border-color .2s; }
.contact-email:hover { border-bottom-color: var(--teal); }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 500; }
.field input, .field textarea {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; color: var(--text);
  padding: 12px 14px; font: inherit; font-size: 15px; transition: border-color .2s var(--ease);
  width: 100%; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
.contact-form .btn { margin-top: 4px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 54px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; padding-bottom: 34px; border-bottom: 1px solid var(--border); }
.footer-tag { color: var(--muted); margin: 14px 0 0; font-size: .95rem; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); font-size: 15px; transition: color .2s; }
.footer-nav a:hover { color: var(--teal-bright); }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 14px; padding-top: 22px; }

/* ===== Reveal animation (only when JS is active, so content is never hidden without it) ===== */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 18px; }
  .flow::before { display: none; }
  .stats { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; gap: 32px; }
  .faq-head { position: static; }
  .contact-inner { grid-template-columns: 1fr; gap: 38px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 4px; align-items: stretch;
    background: rgba(14,26,26,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px; transform: translateY(-120%); transition: transform .35s var(--ease); z-index: 90;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid var(--border); }
  .nav .nav-cta { text-align: center; margin-top: 10px; border: 1px solid var(--teal-deep); }
  .hero { padding: 150px 0 84px; }
  .section { padding: 68px 0; }
  .card { padding: 30px 26px; }
}
@media (max-width: 480px) {
  .card { padding: 26px 22px; }
  .flow-node { padding: 28px 22px; }
  .stat { padding: 28px 24px; }
  .footer-inner { flex-direction: column; }
  .brand-name { font-size: 17px; }
}
