﻿:root{
  --bg:#021b18;
  --bg2:#062822;
  --card:rgba(4,35,30,.72);
  --card2:rgba(6,48,40,.84);
  --line:rgba(85,255,174,.18);
  --line2:rgba(255,204,93,.28);
  --text:#f5fff9;
  --muted:#abc6bd;
  --gold:#f2bd4d;
  --gold2:#f8d070;
  --green:#27e16f;
  --red:#e95d42;
  --shadow:0 24px 80px rgba(0,0,0,.45);
  --font:Inter, Manrope, "Segoe UI", Roboto, Arial, sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font);
  background:
    radial-gradient(circle at 18% 18%, rgba(37,255,161,.16), transparent 28%),
    radial-gradient(circle at 78% 12%, rgba(242,189,77,.12), transparent 27%),
    linear-gradient(180deg,#021513 0%,#031d1a 48%,#021512 100%);
  color:var(--text);
  line-height:1.55;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0/42px 42px,
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px) 0 0/42px 42px;
  mask-image:linear-gradient(to bottom, rgba(0,0,0,.7), transparent 75%);
}
a{color:inherit;text-decoration:none}
.site-shell{min-height:100vh;overflow:hidden}

.topbar{
  position:sticky;
  top:0;
  z-index:20;
  height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding:0 9vw;
  background:rgba(1,17,15,.78);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(18px);
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:max-content;
  font-weight:900;
  letter-spacing:.08em;
}
.brand-img{
  height:42px;
  width:auto;
  max-width:250px;
  object-fit:contain;
}
.brand-img[src=""], .brand-img:not([src]){display:none}
.brand-fallback{display:flex;align-items:center;gap:10px}
.brand-img + .brand-fallback{display:none}
.bull{color:var(--gold);font-size:30px;filter:drop-shadow(0 0 10px rgba(242,189,77,.55))}
.brand span span{color:var(--gold)}
.nav{
  display:flex;
  align-items:center;
  gap:34px;
  color:#dce9e4;
  font-size:14px;
  font-weight:700;
}
.nav a{opacity:.86;transition:.2s}
.nav a:hover{opacity:1;color:var(--gold)}
.top-actions{display:flex;align-items:center;gap:12px}
.lang-select{
  height:42px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:10px;
  background:rgba(255,255,255,.05);
  color:var(--text);
  padding:0 10px;
  outline:none;
}
.lang-select option{color:#111}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  height:42px;
  padding:0 22px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.16);
  font-weight:800;
  font-size:14px;
  transition:.2s ease;
  cursor:pointer;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-1px)}
.btn.gold{
  color:#181007;
  border-color:rgba(242,189,77,.75);
  background:linear-gradient(135deg,var(--gold),var(--gold2));
  box-shadow:0 12px 30px rgba(242,189,77,.18);
}
.btn.ghost,.btn.glass{
  background:rgba(255,255,255,.04);
  color:var(--text);
}
.btn.big{height:54px;padding:0 34px;border-radius:12px;font-size:15px}

.hero{
  position:relative;
  display:grid;
  grid-template-columns:minmax(340px,.86fr) minmax(620px,1.14fr);
  gap:42px;
  align-items:center;
  padding:86px 9vw 58px;
  min-height:650px;
}
.hero-glow{
  position:absolute;
  left:-180px;
  bottom:20px;
  width:520px;
  height:520px;
  border-radius:999px;
  background:
    radial-gradient(circle at 45% 50%, rgba(32,255,160,.26), transparent 55%),
    radial-gradient(circle, rgba(242,189,77,.08), transparent 65%);
  filter:blur(6px);
}
.hero-copy{position:relative;z-index:2}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:var(--gold);
  font-weight:900;
  letter-spacing:.06em;
  margin-bottom:18px;
}
.shield{
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border:1px solid var(--line2);
  border-radius:10px;
  background:rgba(242,189,77,.08);
}
h1{
  margin:0;
  max-width:760px;
  font-size:clamp(42px,5.2vw,78px);
  line-height:.98;
  letter-spacing:-.065em;
}
.hero h1::after{
  content:"";
  display:inline-block;
  width:.32em;
}
.hero h1{
  background:linear-gradient(90deg,#ffffff 0%,#f3fff9 55%,#eab84d 78%,#fff1b0 100%);
  -webkit-background-clip:text;
  color:transparent;
}
.hero-copy p,.sub-hero p{
  max-width:680px;
  margin:22px 0 0;
  color:var(--muted);
  font-size:18px;
}
.hero-points{
  display:grid;
  grid-template-columns:repeat(2,minmax(230px,1fr));
  gap:12px 22px;
  margin:28px 0 32px;
  max-width:720px;
}
.hero-points div{
  display:flex;
  align-items:center;
  gap:12px;
  color:#effff8;
}
.hero-points span{
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  border-radius:50%;
  color:var(--green);
  border:1px solid rgba(39,225,111,.45);
  background:rgba(39,225,111,.08);
  font-size:13px;
}
.hero-buttons{display:flex;gap:18px;flex-wrap:wrap}

.hero-visual{
  position:relative;
  z-index:2;
  perspective:1200px;
}
.dashboard-window{
  display:grid;
  grid-template-columns:176px 1fr;
  min-height:520px;
  border:1px solid rgba(123,255,178,.25);
  border-radius:22px;
  background:
    linear-gradient(180deg,rgba(9,55,46,.82),rgba(2,24,21,.93)),
    radial-gradient(circle at 80% 0%,rgba(242,189,77,.12),transparent 35%);
  box-shadow:
    0 0 0 1px rgba(242,189,77,.12) inset,
    0 0 36px rgba(45,255,148,.20),
    var(--shadow);
  overflow:hidden;
  transform:rotateY(-4deg) rotateX(2deg);
}
.dash-sidebar{
  padding:20px 14px;
  background:rgba(0,14,13,.36);
  border-right:1px solid rgba(255,255,255,.08);
  display:flex;
  flex-direction:column;
  gap:8px;
}
.mini-brand{
  font-weight:900;
  color:#fff;
  margin-bottom:14px;
  letter-spacing:.03em;
}
.dash-sidebar span{
  padding:10px 12px;
  border-radius:10px;
  color:#afc7bf;
  font-size:12px;
  font-weight:800;
}
.dash-sidebar span.active{
  color:var(--gold);
  background:rgba(242,189,77,.10);
  border:1px solid rgba(242,189,77,.18);
}
.dash-main{padding:18px}
.dash-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:16px;
}
.dash-head small{display:block;color:#91aaa2;font-size:11px}
.dash-head strong{font-size:17px}
.live-pill,.state-live{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#baffd2;
  border-radius:999px;
  background:rgba(39,225,111,.12);
  border:1px solid rgba(39,225,111,.25);
  padding:7px 12px;
  font-size:12px;
  font-weight:900;
}
.live-pill span,.state-live span,.machine-status p span{
  width:8px;height:8px;border-radius:50%;background:var(--green);
  box-shadow:0 0 14px var(--green);
}
.dash-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr .78fr;
  gap:12px;
}
.panel,.metric{
  border:1px solid rgba(255,255,255,.09);
  border-radius:13px;
  background:rgba(0,20,18,.45);
  box-shadow:0 1px 0 rgba(255,255,255,.05) inset;
}
.panel{padding:14px}
.panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.panel-head span{font-size:13px;color:#d7e8e1;font-weight:900}
.panel-head strong{font-size:12px;color:#d6ffe3}
.wide{grid-column:span 1;grid-row:span 2}
.chart-panel{min-height:285px}
.candle-chart,.line-chart{width:100%;height:auto;display:block}
.state-panel{display:flex;flex-direction:column;gap:16px}
.state-panel small{color:#a5bdb5}
.metric{
  min-height:92px;
  padding:14px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.metric span{font-size:12px;color:#aabeb7;font-weight:800}
.metric strong{font-size:24px;line-height:1.1;margin:5px 0}
.metric small{color:var(--green);font-weight:900}
.alerts{grid-column:span 2}
.alerts p,.machine-status p{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:9px 0;
  color:#c8ded6;
  font-size:12px;
}
.alerts em{
  color:var(--gold);
  font-style:normal;
  font-weight:900;
}
.machine-status p b{color:var(--green)}

.feature-strip{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:14px;
  padding:10px 9vw 58px;
}
.feature-strip article,.flow-row article,.war-grid article{
  border:1px solid var(--line);
  border-radius:16px;
  padding:20px;
  background:linear-gradient(180deg,rgba(7,54,45,.68),rgba(1,24,21,.72));
  box-shadow:0 0 26px rgba(20,255,150,.05);
}
.feature-strip span{
  color:var(--gold);
  font-size:28px;
}
.feature-strip h3,.flow-row h3,.war-grid h3{margin:8px 0 6px;font-size:17px}
.feature-strip p,.flow-row p,.war-grid p{margin:0;color:var(--muted);font-size:13px}

.workflow{
  padding:42px 9vw 62px;
  border-top:1px solid rgba(255,255,255,.07);
  border-bottom:1px solid rgba(255,255,255,.07);
  background:rgba(0,22,19,.36);
}
.section-title{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  margin-bottom:28px;
  color:var(--gold);
  text-transform:uppercase;
}
.section-title span{width:90px;height:1px;background:linear-gradient(90deg,transparent,var(--gold),transparent)}
.section-title h2{margin:0;font-size:24px;letter-spacing:.04em}
.flow-row{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:18px;
}
.flow-row article{position:relative}
.flow-row article:not(:last-child)::after{
  content:"→";
  position:absolute;
  right:-18px;
  top:50%;
  color:var(--gold);
  transform:translateY(-50%);
}
.flow-row b,.war-grid span{
  color:var(--gold);
  font-size:13px;
  letter-spacing:.08em;
}

.contact{
  margin:0 9vw;
  padding:50px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}
.contact h2{font-size:34px;margin:0 0 8px}
.contact p{margin:0;color:var(--muted)}
.contact form{display:flex;gap:10px}
.contact input{
  width:320px;
  max-width:60vw;
  height:48px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:10px;
  background:rgba(255,255,255,.04);
  color:var(--text);
  padding:0 16px;
  outline:none;
}

.footer{
  display:grid;
  grid-template-columns:2fr repeat(3,1fr);
  gap:24px;
  padding:42px 9vw 54px;
  border-top:1px solid rgba(255,255,255,.08);
  background:rgba(0,12,11,.55);
}
.footer p,.footer a{color:var(--muted)}
.footer a{display:block;margin:8px 0}
.footer h4{margin:0 0 10px;color:#e9fff7}
.footer-brand{margin-bottom:12px}

.sub-hero{
  padding:95px 9vw 68px;
  min-height:430px;
  background:
    radial-gradient(circle at 80% 20%,rgba(39,225,111,.18),transparent 34%),
    radial-gradient(circle at 20% 50%,rgba(242,189,77,.10),transparent 28%);
}
.sub-hero h1{
  max-width:950px;
  color:#fff;
  background:none;
  -webkit-background-clip:initial;
  font-size:clamp(42px,5vw,72px);
}
.war-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  padding:30px 9vw 72px;
}
.security-block{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:30px;
  margin:0 9vw 50px;
  padding:34px;
  border:1px solid var(--line);
  border-radius:22px;
  background:rgba(2,31,27,.68);
}
.security-block h2{font-size:34px;margin:0 0 12px}
.security-block p,.security-block li{color:var(--muted)}
.security-block li{margin:10px 0}

[dir="rtl"] body,[dir="rtl"] .site-shell{direction:rtl}
[dir="rtl"] .dashboard-window{direction:ltr}
[dir="rtl"] .nav,[dir="rtl"] .top-actions,[dir="rtl"] .hero-buttons{direction:rtl}
[dir="rtl"] .flow-row article:not(:last-child)::after{content:"←";right:auto;left:-18px}

@media (max-width:1200px){
  .topbar{padding:0 5vw}
  .hero{grid-template-columns:1fr;padding:70px 5vw 48px}
  .hero-visual{max-width:980px}
  .feature-strip,.flow-row{grid-template-columns:repeat(3,1fr);padding-left:5vw;padding-right:5vw}
  .workflow,.footer,.contact,.war-grid,.sub-hero{padding-left:5vw;padding-right:5vw;margin-left:0;margin-right:0}
}
@media (max-width:820px){
  .topbar{height:auto;min-height:74px;flex-wrap:wrap;padding:14px 20px}
  .nav{order:3;width:100%;overflow:auto;gap:18px;padding-bottom:4px}
  .top-actions{margin-left:auto}
  .btn.ghost{display:none}
  .hero{padding:48px 20px}
  .hero-points{grid-template-columns:1fr}
  .dashboard-window{grid-template-columns:1fr;transform:none}
  .dash-sidebar{display:none}
  .dash-grid{grid-template-columns:1fr}
  .wide,.alerts{grid-column:auto}
  .feature-strip,.flow-row,.war-grid{grid-template-columns:1fr;padding-left:20px;padding-right:20px}
  .flow-row article::after{display:none}
  .contact{flex-direction:column;align-items:flex-start;padding:38px 20px}
  .contact form{width:100%;flex-direction:column}
  .contact input{width:100%;max-width:none}
  .footer{grid-template-columns:1fr 1fr;padding:34px 20px}
  .security-block{grid-template-columns:1fr;margin:0 20px 40px;padding:24px}
}
@media (max-width:520px){
  h1{font-size:42px}
  .brand-img{max-width:190px}
  .footer{grid-template-columns:1fr}
  .top-actions .gold{display:none}
}

/* Phase40 Visual Polish v3 */
:root {
  --font: "Segoe UI Variable", "Segoe UI", "Inter", "Manrope", "Aptos", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

body {
  font-family: var(--font);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.brand,
.btn,
.nav {
  font-family: "Segoe UI Variable", "Segoe UI", "Inter", "Manrope", "Aptos", system-ui, sans-serif;
}

h1 {
  font-weight: 850;
  letter-spacing: -0.075em;
}

.hero-copy p,
.sub-hero p,
.feature-strip p,
.flow-row p,
.war-grid p {
  font-weight: 450;
}

.realistic-visual {
  perspective: 1600px;
}

.dashboard-image-card {
  position: relative;
  border-radius: 28px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 214, 111, .18), rgba(43, 255, 149, .12)),
    rgba(2, 20, 18, .76);
  border: 1px solid rgba(255, 214, 111, .34);
  box-shadow:
    0 0 0 1px rgba(71, 255, 164, .12) inset,
    0 0 52px rgba(43, 255, 149, .17),
    0 34px 95px rgba(0, 0, 0, .52);
  transform: rotateY(-5deg) rotateX(2deg);
  transform-origin: center;
}

.dashboard-image-card::before {
  content: "";
  position: absolute;
  inset: -24px;
  z-index: -1;
  background:
    radial-gradient(circle at 25% 18%, rgba(255, 214, 111, .18), transparent 24rem),
    radial-gradient(circle at 72% 22%, rgba(43, 255, 149, .18), transparent 28rem);
  filter: blur(12px);
}

.dashboard-image-toolbar {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
  border-radius: 18px 18px 10px 10px;
  background: rgba(0, 13, 12, .54);
  border: 1px solid rgba(255, 255, 255, .06);
  margin-bottom: 12px;
}

.dashboard-image-toolbar span {
  color: #fff8dc;
  font-weight: 900;
  letter-spacing: -.01em;
}

.dashboard-image-toolbar strong {
  color: #86ffb4;
  font-size: 12px;
  font-weight: 850;
}

.dashboard-preview-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(121, 255, 184, .10),
    0 18px 55px rgba(0, 0, 0, .35);
}

.dashboard-image-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px 2px 0;
}

.dashboard-image-foot span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 34px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .18);
  color: #b9d0c8;
  font-size: 12px;
  font-weight: 750;
  border: 1px solid rgba(255, 255, 255, .06);
}

.dashboard-image-foot b {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #27e16f;
  box-shadow: 0 0 12px #27e16f;
}

.feature-strip article,
.flow-row article,
.war-grid article {
  backdrop-filter: blur(14px);
}

.btn.gold {
  background: linear-gradient(135deg, #e4ad39 0%, #ffd56f 48%, #d99a2a 100%);
}

@media (max-width: 1200px) {
  .dashboard-image-card {
    transform: none;
  }
}

@media (max-width: 820px) {
  .dashboard-image-toolbar {
    height: auto;
    min-height: 48px;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 14px;
  }

  .dashboard-image-foot {
    grid-template-columns: 1fr;
  }
}
