/* ===== Dynareon — brand stylesheet ===== */
:root {
  --bg:        #10161d;
  --bg-alt:    #151d26;
  --surface:   #1b2530;
  --surface-2: #212d3a;
  --border:    #2c3947;
  --text:      #e9eef4;
  --muted:     #93a2b2;
  --steel:     #4f86c6;
  --cyan:      #37b0d8;
  --ice:       #a9c7e0;
  --grad:      linear-gradient(120deg, #37b0d8, #4f86c6, #2b5f96);
  --radius:    16px;
  --maxw:      1140px;
  --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(--cyan); color: #08121a; 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: #06121b;
  box-shadow: 0 8px 24px -8px rgba(55,176,216,.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(55,176,216,.7); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--ice); 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(16,22,29,.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: 20px; font-weight: 700; letter-spacing: .01em; }

.nav { display: flex; align-items: center; gap: 30px; }
.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(--cyan); color: var(--ice); }

.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 ===== */
.hero { position: relative; padding: 168px 0 96px; overflow: hidden; }
.hero-inner {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 52px;
}
.hero-copy { max-width: 640px; }
.hero-glow {
  position: absolute; top: -10%; right: -8%; left: auto;
  width: 820px; height: 660px;
  background: radial-gradient(ellipse at center, rgba(55,176,216,.22), rgba(79,134,198,.06) 44%, transparent 68%);
  filter: blur(12px); z-index: 1; pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 82% 72% at 68% 32%, #000 22%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 82% 72% at 68% 32%, #000 22%, transparent 72%);
  opacity: .45;
}
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ice); margin: 0 0 20px; font-weight: 600;
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 700; text-align: left; }
.hero-sub { font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--muted); margin: 26px 0 0; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

/* Automation console mockup */
.hero-console { position: relative; }
.console-glow {
  position: absolute; inset: -14% -8% -20% -8%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 60% 30%, rgba(55,176,216,.22), transparent 62%);
  filter: blur(8px);
}
.console {
  position: relative; z-index: 1;
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(169,199,224,.06);
  overflow: hidden;
}
.console-top {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 18px; background: rgba(16,22,29,.5);
}
.console-dots { display: inline-flex; gap: 6px; }
.console-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.console-dots span:first-child { background: #3b5163; }
.console-title {
  font-family: "Space Grotesk", sans-serif; font-size: 11px; letter-spacing: .18em;
  color: var(--muted); font-weight: 600;
}
.console-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font-family: "Space Grotesk", sans-serif; font-size: 11px; letter-spacing: .12em; color: var(--ice);
}
.console-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(55,176,216,.18); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .console-live i { animation: none; } }

.console-hairline { height: 1px; background: linear-gradient(90deg, transparent, var(--steel), transparent); opacity: .7; }
.console-hairline.soft { opacity: .3; margin: 6px 0 2px; }

.console-body { padding: 22px 22px 24px; display: grid; gap: 16px; }
.readout { display: grid; gap: 8px; }
.readout-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); }
.readout-val { font-family: "Space Grotesk", sans-serif; color: var(--text); font-size: 14px; letter-spacing: .02em; }
.bar { height: 6px; border-radius: 999px; background: rgba(44,57,71,.9); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad); }

.console-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 2px; }
.cell {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 13px; border: 1px solid var(--border); border-radius: 11px;
  background: rgba(16,22,29,.4);
}
.cell-label { font-size: 12.5px; color: var(--muted); }
.cell-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-family: "Space Grotesk", sans-serif; letter-spacing: .02em; }
.cell-state i { width: 7px; height: 7px; border-radius: 50%; }
.cell-state.ok { color: var(--ice); }
.cell-state.ok i { background: var(--cyan); }
.cell-state.sync { color: var(--steel); }
.cell-state.sync i { background: var(--steel); }

.console-dotrow { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; margin-top: 4px; }
.console-dotrow span { height: 4px; border-radius: 2px; background: var(--border); }
.console-dotrow span:nth-child(-n+7) { background: var(--steel); opacity: .55; }
.console-dotrow span:nth-child(-n+4) { background: var(--cyan); opacity: .8; }

/* ===== Trust strip ===== */
.trust { border-block: 1px solid var(--border); background: var(--bg-alt); }
.trust-inner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 20px;
  padding: 18px 24px;
  font-family: "Space Grotesk", sans-serif; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ice);
}
.trust-inner .sep { color: var(--steel); }

/* ===== 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(--cyan); font-weight: 600; margin: 0 0 14px; }
.section-head { max-width: 700px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.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 — bento ===== */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 30px 32px; position: relative; overflow: hidden;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.tile::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);
}
.tile:hover { border-color: var(--steel); background: var(--surface-2); transform: translateY(-4px); }
.tile:hover::before { transform: scaleX(1); }
.tile-feature { grid-row: span 2; grid-column: span 1; }
.tile-wide { grid-column: span 2; }
.tile-ico {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  color: var(--cyan); margin-bottom: 18px;
  background: radial-gradient(circle at 40% 30%, rgba(55,176,216,.18), transparent 70%);
  border: 1px solid rgba(55,176,216,.24);
}
.tile-ico svg { width: 26px; height: 26px; }
.tile-tag {
  display: inline-block; font-family: "Space Grotesk", sans-serif; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ice); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 14px;
}
.tile h3 { font-size: 1.35rem; margin-bottom: 10px; }
.tile-feature h3 { font-size: 1.7rem; }
.tile p { color: var(--muted); margin: 0; font-size: .98rem; }
.tile-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.tile-list li { position: relative; padding-left: 22px; font-size: .95rem; color: var(--ice); }
.tile-list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px;
  background: var(--grad);
}

/* ===== Metrics band ===== */
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.metric {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.metric:hover { border-color: var(--steel); transform: translateY(-4px); }
.metric-key {
  display: inline-block; font-family: "Space Grotesk", sans-serif; font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700; margin-bottom: 8px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric-title { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.1rem; margin: 0 0 8px; }
.metric-desc { color: var(--muted); margin: 0; font-size: .97rem; }

/* ===== Solutions — tabs ===== */
.tabs { border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); overflow: hidden; background: var(--surface); }
.tablist { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.tab {
  flex: 1 1 auto; min-width: 160px;
  background: transparent; border: 1px solid transparent; color: var(--muted); cursor: pointer;
  font-family: "Space Grotesk", sans-serif; font-size: 14.5px; font-weight: 600;
  padding: 13px 18px; border-radius: 10px;
  transition: color .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); background: var(--surface-2); border-color: var(--border); }
.tabpanels { padding: 40px; }
.tabpanel { display: none; }
.tabpanel.is-active { display: block; animation: fadeUp .4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tabpanel.is-active { animation: none; } }
.panel-inner { display: grid; grid-template-columns: 1.4fr .9fr; gap: 40px; align-items: start; }
.panel-copy h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 14px; }
.panel-copy p { color: var(--muted); margin: 0; font-size: 1.03rem; }
.panel-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; }
.panel-points li {
  position: relative; padding: 12px 14px 12px 34px; font-size: .95rem; color: var(--ice);
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 11px;
}
.panel-points li::before {
  content: ""; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 2px; background: var(--grad);
}

/* ===== Statement ===== */
.statement-inner { max-width: 900px; margin: 0 auto; text-align: center; position: relative; }
.statement-mark {
  display: block; font-family: "Space Grotesk", sans-serif; font-size: 6rem; line-height: .6;
  color: var(--steel); opacity: .5; margin-bottom: 10px;
}
.statement-inner blockquote {
  margin: 0; font-family: "Space Grotesk", sans-serif; font-weight: 600;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem); line-height: 1.28; letter-spacing: -0.02em;
}
.statement-sub { color: var(--muted); margin-top: 24px; font-size: 1.05rem; }

/* ===== 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(--steel); }
.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.08rem; font-weight: 600; padding: 22px 24px;
}
.faq-q:hover { color: var(--ice); }
.faq-ico { position: relative; flex: 0 0 auto; width: 16px; height: 16px; }
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; background: var(--cyan); 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.3rem; color: var(--ice); border-bottom: 1px solid transparent; transition: border-color .2s; }
.contact-email:hover { border-bottom-color: var(--cyan); }
.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(--cyan); }
.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(--ice); }
.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 under .js) ===== */
.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) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-console { order: 2; max-width: 520px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-feature { grid-row: auto; grid-column: span 2; }
  .tile-wide { grid-column: span 2; }
  .metric-grid { grid-template-columns: 1fr; }
  .panel-inner { grid-template-columns: 1fr; gap: 26px; }
  .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(16,22,29,.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(--steel); }
  .hero { padding: 128px 0 68px; }
  .section { padding: 68px 0; }
  .tabpanels { padding: 28px; }
  .tab { min-width: 130px; flex: 1 1 45%; }
}
@media (max-width: 480px) {
  .bento { grid-template-columns: 1fr; }
  .tile-feature, .tile-wide { grid-column: auto; }
  .console-body { padding: 18px; }
  .console-grid { grid-template-columns: 1fr; }
  .tab { min-width: 0; flex: 1 1 100%; }
  .footer-inner { flex-direction: column; }
  .statement-mark { font-size: 4.5rem; }
  .tabpanels { padding: 22px; }
}
