/* ============================================================
   Cybrela AI/Tech — one-pager
   Rewritten from the design reference into plain, CSP-safe CSS.
   No inline styles, no external CDN. Colors/layout kept faithful.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:  #F1EAD9;
  --sand:   #EADFC6;
  --sand-dim: rgba(234,223,198,0.72);
  --ink:    #16130E;
  --navy:   #0F283C;
  --navy-d: #0B1F30;
  --red:    #DB2016;
  --coral:  #F04B3A;
  --salmon: #F59080;
  --slate:  #9DB4CC;
  --slate-d:#6E839C;
  --green:  #41CE95;
  --sans:   'Inter', system-ui, -apple-system, sans-serif;
  --display:'Plus Jakarta Sans', system-ui, sans-serif;
  --mono:   ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: #009AFA; text-decoration: none; }
a:hover { color: #0077C2; }
::selection { background: var(--coral); color: var(--navy); }

/* ---------- shared brand + buttons ---------- */
.brand { display: inline-flex; align-items: baseline; gap: 11px; }
.brand:hover { color: inherit; }
.brand-logo { height: 36px; width: auto; filter: brightness(0) invert(1); }
.brand-suffix { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--coral); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600;
  padding: 15px 28px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn .arrow { font-size: 17px; }
.btn-red { background: var(--red); color: #FFEAE3; }
.btn-red:hover { background: #A31C10; color: #FFEAE3; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--sand); border-color: rgba(157,180,204,0.4); }
.btn-ghost:hover { border-color: var(--sand-dim); background: rgba(157,180,204,0.08); color: var(--sand); }
.btn-navy { background: var(--navy); color: var(--sand); font-size: 16px; padding: 17px 34px; border-radius: 11px; }
.btn-navy:hover { background: var(--navy-d); color: var(--sand); transform: translateY(-2px); }

/* ---------- shared decorative layers ---------- */
.grid-drift {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(157,180,204,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157,180,204,0.09) 1px, transparent 1px);
  background-size: 44px 44px;
  animation: gridDrift 26s linear infinite;
}
.grid-drift-light {
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  animation-duration: 30s;
}
.aurora { position: absolute; border-radius: 50%; pointer-events: none; }
.aurora-red {
  top: -200px; right: -140px; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(240,75,58,0.24), transparent 66%);
  animation: aurora 16s ease-in-out infinite;
}
.aurora-green {
  bottom: -220px; left: -120px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(65,206,149,0.15), transparent 68%);
  animation: auroraB 20s ease-in-out infinite;
}
.aurora-white {
  bottom: -160px; left: 50%; transform: translateX(-50%);
  width: 640px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 66%);
  animation: aurora 15s ease-in-out infinite;
}

/* ---------- shared mono prompt ---------- */
.mono-prompt { font-family: var(--mono); font-size: 13px; margin-bottom: 16px; }
.mono-dim { opacity: .55; }
.mono-red { color: var(--red); }
.mono-salmon { color: var(--salmon); margin-bottom: 14px; }
.mono-navy { color: var(--navy); opacity: .75; }

/* ============================ HERO ============================ */
.hero { position: relative; background: var(--navy); color: var(--sand); overflow: hidden; }
.nav {
  position: relative; z-index: 1; max-width: 1160px; margin: 0 auto;
  padding: 26px 32px 0; display: flex; align-items: center; gap: 24px;
}
.nav-cta { margin-left: auto; font-size: 14px; padding: 10px 18px; border-radius: 9px; }

.hero-inner {
  position: relative; z-index: 1; max-width: 1160px; margin: 0 auto;
  padding: 80px 32px 92px;
  display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 56px; align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(240,75,58,0.12); border: 1px solid rgba(240,75,58,0.35);
  padding: 7px 15px; border-radius: 100px; margin-bottom: 30px;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); animation: pulseDot 1.8s ease-in-out infinite; }
.badge-text { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--salmon); }

.hero-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(34px, 3.6vw, 58px); line-height: 1.05; letter-spacing: -0.025em;
  max-width: 15ch;
}
.grad {
  background: linear-gradient(100deg, #F04B3A, #F59080, #F04B3A);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 5s linear infinite;
}
.hero-lead { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.6; color: var(--sand-dim); max-width: 56ch; margin-top: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* ---------- console panel ---------- */
.console {
  background: var(--navy-d); border: 1px solid rgba(157,180,204,0.18);
  border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}
.console-head {
  display: flex; align-items: center; gap: 8px; padding: 14px 18px;
  border-bottom: 1px solid rgba(157,180,204,0.14); background: rgba(157,180,204,0.05);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red { background: var(--red); } .dot-amber { background: #F5A623; } .dot-green { background: var(--green); }
.console-file { font-family: var(--mono); font-size: 12px; color: var(--sand-dim); margin-left: 8px; }
.console-body {
  padding: 22px 24px 8px; font-family: var(--mono); font-size: 13.5px;
  line-height: 2; color: var(--sand-dim); max-height: 340px; overflow-y: auto;
}
.c-prompt { color: var(--sand-dim); }
.c-green { color: var(--green); } .c-bright { color: var(--sand); } .c-salmon { color: var(--salmon); }
.console-input-row { display: flex; align-items: center; gap: 8px; }
.console-input {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  color: var(--sand); font-family: inherit; font-size: inherit; padding: 0;
}
.console-cursor { display: inline-block; width: 9px; height: 16px; background: var(--green); vertical-align: -3px; animation: pulseDot 1.1s steps(1, end) infinite; }
.console-cmds { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 24px 20px; }
.cmd {
  font-family: var(--mono); font-size: 11px; color: var(--sand-dim);
  background: transparent; border: 1px solid rgba(157,180,204,0.28);
  border-radius: 6px; padding: 4px 10px; cursor: pointer; transition: .18s;
}
.cmd:hover { border-color: var(--coral); color: var(--coral); }

/* ============================ WHO WE ARE ============================ */
.who { background: var(--cream); padding: 96px 32px 52px; }
.who-grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: center; }
.who-title { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.12; letter-spacing: -0.02em; color: var(--navy); }
.who-body { display: flex; flex-direction: column; gap: 22px; font-size: 17px; line-height: 1.7; color: #5F5B52; }
.who-lead { font-size: 21px; line-height: 1.5; color: var(--navy); font-weight: 500; }
.hl-red { color: var(--red); font-weight: 700; }
.who-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.who-card { background: var(--red); border-radius: 12px; padding: 24px; box-shadow: 0 16px 36px rgba(219,32,22,0.26); transition: transform .25s ease; }
.who-card:hover { transform: translateY(-4px); }
.who-card-title { font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--sand); margin-bottom: 8px; line-height: 1.15; }
.who-card-text { font-size: 14.5px; color: #FBCFC2; line-height: 1.55; }

/* ============================ PRODUCTS ============================ */
.products { background: var(--navy-d); padding: 96px 32px; }
.products-inner { max-width: 1200px; margin: 0 auto; }
.products-head { max-width: 680px; margin-bottom: 14px; }
.products-title { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -0.02em; color: var(--sand); }
.products-lead { font-size: 16px; line-height: 1.6; color: var(--sand-dim); max-width: 60ch; margin-bottom: 44px; }
.product-list { display: flex; flex-direction: column; gap: 20px; }

.tool-card {
  position: relative; overflow: hidden;
  background: var(--navy); border: 1px solid rgba(157,180,204,0.16); border-radius: 18px;
  padding: 28px 30px; display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: center;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.tool-card:hover,
.tool-card.is-active { background: var(--red); border-color: var(--coral); box-shadow: 0 22px 52px rgba(219,32,22,0.4); transform: translateY(-4px); }
.tool-card:hover .tool-tag,
.tool-card:hover .tool-desc,
.tool-card:hover .tool-telemetry,
.tool-card:hover .tool-telemetry span,
.tool-card:hover .build-label,
.tool-card.is-active .tool-tag,
.tool-card.is-active .tool-desc,
.tool-card.is-active .tool-telemetry,
.tool-card.is-active .tool-telemetry span,
.tool-card.is-active .build-label { color: var(--sand); }
.tool-tags { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.tool-tag { font-family: var(--mono); font-size: 12px; color: var(--sand-dim); border: 1px solid rgba(157,180,204,0.22); padding: 4px 9px; border-radius: 6px; }
.tool-name { font-family: var(--display); font-weight: 700; font-size: 27px; letter-spacing: -0.01em; color: var(--sand); margin-bottom: 10px; }
.tool-desc { font-size: 15.5px; line-height: 1.62; color: var(--sand-dim); max-width: 60ch; transition: color .25s ease; }
.tool-telemetry { font-family: var(--mono); font-size: 12.5px; line-height: 1.9; color: var(--sand-dim); border-left: 2px solid rgba(240,75,58,0.5); padding-left: 14px; margin-bottom: 18px; }
.tool-telemetry span { color: var(--sand-dim); }
.build-label { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--sand-dim); margin-bottom: 7px; }
.build-track { height: 7px; border-radius: 100px; background: rgba(157,180,204,0.14); overflow: hidden; }
.build-fill { height: 100%; border-radius: 100px; position: relative; overflow: hidden; }
.build-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent); animation: buildbar 2.6s ease-in-out infinite; }
.build-red   { width: 63%; background: linear-gradient(90deg, #F04B3A, #DB2016); }
.build-green { width: 48%; background: linear-gradient(90deg, #41CE95, #0A6B47); }
.build-blue  { width: 55%; background: linear-gradient(90deg, #009AFA, #04446F); }

/* ---------- Tamagoči pet ---------- */
.pet { position: absolute; left: 6%; top: 58%; width: 48px; height: 46px; z-index: 3; pointer-events: none; transition: left 2.1s ease-in-out, top 2.1s ease-in-out; }
.pet-bob { position: relative; width: 100%; height: 100%; animation: petBob .5s ease-in-out infinite; }
.pet-zzz { display: none; position: absolute; top: -13px; right: -3px; font-family: var(--display); font-weight: 800; font-size: 13px; color: var(--coral); animation: zzzFloat 1.8s ease-in-out infinite; }
.pet-ear { position: absolute; top: 1px; width: 13px; height: 13px; background: #B01B0E; }
.pet-ear-l { left: 9px; border-radius: 50% 50% 0 50%; transform: rotate(-18deg); }
.pet-ear-r { right: 9px; border-radius: 50% 50% 50% 0; transform: rotate(18deg); }
.pet-foot { position: absolute; bottom: 1px; width: 9px; height: 6px; border-radius: 50%; background: #8F1508; }
.pet-foot-l { left: 13px; animation: petStepA .5s ease-in-out infinite; }
.pet-foot-r { right: 13px; animation: petStepB .5s ease-in-out infinite; }
.pet-body { position: absolute; top: 7px; left: 4px; width: 40px; height: 34px; border-radius: 20px 20px 15px 15px; background: var(--red); border: 2px solid rgba(255,255,255,0.3); box-shadow: 0 4px 11px rgba(0,0,0,0.38); }
.pet-eye { position: absolute; top: 11px; left: 8px; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.pet-eye-r { left: auto; right: 8px; }
.pet-pupil { position: absolute; top: 2.5px; left: 2.5px; width: 4px; height: 4px; border-radius: 50%; background: #3A0A04; }
.pet-eye-closed { display: none; position: absolute; top: 15px; left: 8px; width: 9px; height: 2px; border-radius: 2px; background: #3A0A04; }
.pet-eye-closed-r { left: auto; right: 8px; }
.pet-cheek { position: absolute; top: 22px; width: 6px; height: 3px; border-radius: 50%; background: rgba(255,150,130,0.75); }
.pet-cheek-l { left: 7px; } .pet-cheek-r { right: 7px; }
.pet-mouth { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 9px; height: 5px; border: 1.5px solid #3A0A04; border-top: none; border-radius: 0 0 9px 9px; }

/* ============================ STRAIGHT TALK ============================ */
.straight { background: var(--cream); padding: 88px 32px 96px; }
.straight-inner { max-width: 900px; margin: 0 auto; }
.straight-title { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -0.02em; color: var(--navy); max-width: 20ch; margin-bottom: 20px; }
.straight-text { font-size: 17px; line-height: 1.7; color: #5F5B52; max-width: 62ch; margin-bottom: 32px; }

/* ============================ CLOSING CTA ============================ */
.closing { position: relative; background: var(--red); color: #FFEAE3; overflow: hidden; padding: clamp(80px, 9vw, 120px) 32px; }
.closing-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; text-align: center; }
.closing-title { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4.4vw, 58px); line-height: 1.08; letter-spacing: -0.025em; color: var(--sand); }
.hl-navy { color: var(--navy); }
.closing-text { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: #FCE7E1; max-width: 52ch; margin: 22px auto 40px; }
.hl-white { color: var(--sand); font-style: normal; font-weight: 700; }

/* ============================ FOOTER ============================ */
.footer { background: var(--navy-d); color: var(--sand-dim); padding: 40px 32px; }
.footer-inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-logo { height: 20px; opacity: 0.85; }
.footer .brand-suffix { font-size: 13px; }
.footer-tag { font-size: 13px; }
.footer-links { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 13px; }
.footer-links a { color: var(--sand-dim); }
.footer-copy { color: var(--sand-dim); }

/* ============================ KEYFRAMES ============================ */
@keyframes gridDrift { from { background-position: 0 0; } to { background-position: 44px 44px; } }
@keyframes aurora  { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(50px,-36px) scale(1.18); } }
@keyframes auroraB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-44px,32px) scale(1.22); } }
@keyframes pulseDot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }
@keyframes shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes buildbar { 0% { transform: translateX(-120%); } 100% { transform: translateX(360%); } }
@keyframes petBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes petStepA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes petStepB { 0%,100% { transform: translateY(-3px); } 50% { transform: translateY(0); } }
@keyframes zzzFloat { 0% { transform: translateY(3px); opacity: .3; } 55% { opacity: 1; } 100% { transform: translateY(-9px); opacity: .15; } }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 56px 22px 68px; }
  .who-grid { grid-template-columns: 1fr; gap: 32px; }
  .who { padding: 72px 22px 40px; }
  .products { padding: 72px 22px; }
  .tool-card { grid-template-columns: 1fr; gap: 22px; }
  .nav { flex-wrap: wrap; padding: 20px 22px 0; }
  .straight { padding: 64px 22px 72px; }
  .footer-inner { gap: 14px; }
  .footer-links { margin-left: 0; }
}
@media (max-width: 520px) {
  .who-cards { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .nav-cta { width: auto; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
