/*
Theme Name: Chlorian Technology
Theme URI: https://chloriantech.com
Author: Chlorian Technology S.r.l.
Author URI: https://chloriantech.com
Description: Custom theme for Chlorian Technology — Digestive Cascade Engineering.
Version: 1.0.0
License: Proprietary
Text Domain: chlorian
*/

/* ============================================================
   CHLORIAN TECHNOLOGY STYLES
   ============================================================ */

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

:root {
  --void: #07070c;
  --deep: #0b0b13;
  --surface: #10101a;
  --raised: rgba(18, 18, 30, 0.8);
  --text: #d8d5ce;
  --t2: #8e8e9a;
  --t3: #4e4e62;
  --t4: #33334a;
  --cyan: #00dbb6;
  --c15: rgba(0, 219, 182, 0.12);
  --c05: rgba(0, 219, 182, 0.04);
  --c02: rgba(0, 219, 182, 0.02);
  --amber: #c9943e;
  --a10: rgba(201, 148, 62, 0.08);
  --a05: rgba(201, 148, 62, 0.04);
  --brd: rgba(255, 255, 255, 0.05);
  --mono: 'JetBrains Mono', monospace;
  --serif: 'Newsreader', serif;
  --sans: 'Geist', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--void) !important;
  color: var(--text) !important;
  font-family: var(--sans) !important;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  margin: 0 !important;
  padding: 0 !important;
}

::selection { background: var(--c15); color: var(--cyan); }

a { color: inherit; }
h1, h2, h3, h4, h5, h6, p { margin: 0; padding: 0; }
ul { margin: 0; padding: 0; }
img { max-width: 100%; }

#bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.4rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  background: rgba(7, 7, 12, 0.6);
  border-bottom: 1px solid var(--brd); transition: padding 0.3s;
}
.nav.s { padding: 1rem 3rem; background: rgba(7, 7, 12, 0.92); }

.n-logo { display: flex; align-items: center; gap: 0.8rem; text-decoration: none !important; }
.n-logo:hover { text-decoration: none !important; }

.logo-mark { width: 32px; height: 32px; position: relative; flex-shrink: 0; }
.logo-mark::before {
  content: ''; position: absolute; inset: 0;
  border: 1px solid var(--cyan); border-radius: 50%;
  opacity: 0.35; animation: lp 4s ease-in-out infinite;
}
.logo-mark::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 6px; height: 6px; transform: translate(-50%, -50%);
  background: var(--cyan); border-radius: 50%; box-shadow: 0 0 12px var(--cyan);
}
@keyframes lp { 0%, 100% { transform: scale(1); opacity: 0.35; } 50% { transform: scale(1.1); opacity: 0.55; } }

.n-name {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.18em; color: var(--text); text-transform: uppercase;
}

.n-links { display: flex; gap: 2rem; list-style: none !important; margin: 0 !important; padding: 0 !important; }
.n-links li { list-style: none; margin: 0; padding: 0; }
.n-links a {
  font-family: var(--mono) !important; font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--t3) !important; text-decoration: none !important; transition: color 0.3s;
}
.n-links a:hover { color: var(--cyan) !important; }

.n-ham { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.n-ham span { width: 22px; height: 1.5px; background: var(--text); display: block; transition: 0.3s; }

.n-links.open {
  display: flex !important; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(7, 7, 12, 0.97); padding: 2rem !important; gap: 1.5rem;
  border-bottom: 1px solid var(--brd);
}

/* HERO */
.hero { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; padding: 8rem 3rem 5rem; }
.hero-inner { max-width: 840px; }

.hero-tag {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 2.5rem;
  opacity: 0; animation: up 0.7s 0.2s forwards;
}
.hero-h {
  font-family: var(--serif) !important; font-size: clamp(2.8rem, 6.5vw, 5.8rem);
  line-height: 1.08 !important; font-weight: 400 !important; margin-bottom: 2.5rem;
  opacity: 0; animation: up 0.7s 0.4s forwards;
}
.hero-h em { font-style: italic; color: var(--cyan); text-shadow: 0 0 50px rgba(0, 219, 182, 0.15); }

.hero-p { font-size: 1.05rem; color: var(--t2); max-width: 580px; margin-bottom: 3rem; opacity: 0; animation: up 0.7s 0.6s forwards; }

.hero-btns { display: flex; gap: 1.2rem; flex-wrap: wrap; opacity: 0; animation: up 0.7s 0.8s forwards; }

.btn-p {
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.9rem 2.2rem;
  background: var(--cyan) !important; color: var(--void) !important; border: none;
  cursor: pointer; text-decoration: none !important; transition: 0.3s; font-weight: 500; display: inline-block;
}
.btn-p:hover { box-shadow: 0 0 30px rgba(0, 219, 182, 0.2); transform: translateY(-2px); color: var(--void) !important; text-decoration: none !important; }

.btn-s {
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.9rem 2.2rem;
  background: transparent; color: var(--t3) !important; border: 1px solid var(--brd);
  cursor: pointer; text-decoration: none !important; transition: 0.3s; display: inline-block;
}
.btn-s:hover { border-color: var(--cyan); color: var(--cyan) !important; }

/* TICKER */
.ticker { border-top: 1px solid var(--brd); border-bottom: 1px solid var(--brd); padding: 1rem 0; overflow: hidden; position: relative; z-index: 1; background: var(--deep); }
.ticker-track { display: flex; gap: 2.5rem; animation: scroll 42s linear infinite; width: max-content; }
.ticker-item { font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--t3); white-space: nowrap; display: flex; align-items: center; gap: 0.8rem; }
.ticker-item .d { width: 3px; height: 3px; border-radius: 50%; background: var(--cyan); opacity: 0.4; flex-shrink: 0; }

/* SECTIONS */
.sec { position: relative; z-index: 1; padding: 7rem 3rem; }
.sec-alt { background: var(--deep); }
.sec-brd { border-bottom: 1px solid var(--brd); }

.s-label { font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--amber); margin-bottom: 1.2rem; }
.s-title { font-family: var(--serif) !important; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.15 !important; font-weight: 400 !important; margin-bottom: 1.8rem; max-width: 660px; }
.s-title em { font-style: italic; }
.s-body { font-size: 0.95rem; color: var(--t2); max-width: 620px; line-height: 1.85; }
.s-body + .s-body { margin-top: 1.5rem; }

/* THESIS */
.thesis-block { max-width: 720px; margin-top: 3rem; padding: 2.5rem; border-left: 2px solid var(--cyan); background: var(--c05); }
.thesis-block p { font-family: var(--serif) !important; font-size: 1.12rem; font-style: italic; line-height: 1.85; color: var(--text); }
.thesis-block .ref { display: block; margin-top: 1rem; font-family: var(--mono); font-size: 0.58rem; font-style: normal; color: var(--t3); letter-spacing: 0.08em; }

/* MECHANISM */
.mech-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3rem; }
.mech-text { font-size: 0.92rem; color: var(--t2); line-height: 1.9; margin-bottom: 1.8rem; }
.mech-text:last-child { margin-bottom: 0; }
.mech-text strong { color: var(--text); font-weight: 500; }
.mech-text .fn { font-family: var(--mono); font-size: 0.55rem; color: var(--t4); vertical-align: super; margin-left: 1px; }

.mech-aside { padding: 2.5rem; border: 1px solid var(--brd); background: var(--raised); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); align-self: start; position: sticky; top: 6rem; }
.mech-aside h4 { font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1.5rem; }

.ma-row { display: flex; align-items: baseline; gap: 0.8rem; padding: 0.65rem 0; border-bottom: 1px solid var(--brd); }
.ma-row:last-child { border-bottom: none; }
.ma-label { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.08em; color: var(--t3); min-width: 72px; text-transform: uppercase; }
.ma-val { font-size: 0.82rem; color: var(--text); line-height: 1.5; }

.pep { font-family: var(--mono); font-size: 0.68rem; color: var(--cyan); background: var(--c15); padding: 0.12rem 0.35rem; margin: 0.12rem 0.15rem 0.12rem 0; display: inline-block; letter-spacing: 0.04em; }
.aside-note { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--brd); font-family: var(--mono); font-size: 0.55rem; color: var(--t4); line-height: 1.6; }

/* CASCADE */
.cascade-viz { margin-top: 4rem; border: 1px solid var(--brd); background: var(--raised); overflow: hidden; }
.cascade-header { padding: 1.3rem 2rem; border-bottom: 1px solid var(--brd); font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--t3); display: flex; justify-content: space-between; align-items: center; }
.cascade-header .st { display: flex; align-items: center; gap: 0.5rem; }
.cascade-header .st-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); animation: blink 2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.cascade-stages { display: grid; grid-template-columns: repeat(5, 1fr); }
.c-stg { padding: 1.8rem 1.3rem; border-right: 1px solid var(--brd); position: relative; transition: background 0.3s; }
.c-stg:last-child { border-right: none; }
.c-stg:hover { background: var(--c02); }
.c-stg::after { content: '→'; position: absolute; right: -0.5rem; top: 50%; transform: translateY(-50%); color: var(--t4); font-size: 0.65rem; z-index: 2; }
.c-stg:last-child::after { display: none; }

.c-ph { font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.6rem; }
.c-env { font-family: var(--mono); font-size: 0.55rem; color: var(--t3); margin-bottom: 0.5rem; }
.c-enz { font-size: 0.75rem; color: var(--t2); margin-bottom: 0.5rem; line-height: 1.55; }
.c-int { font-size: 0.68rem; color: var(--amber); font-family: var(--mono); padding-top: 0.5rem; border-top: 1px solid var(--brd); margin-top: 0.4rem; line-height: 1.5; }

/* KINETICS */
.kinetics-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; margin-top: 4rem; background: var(--brd); }
.kin-card { background: var(--void); padding: 2.5rem; transition: background 0.3s; }
.kin-card:hover { background: var(--surface); }
.kin-card-tag { font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 1rem; }
.kin-card h3 { font-family: var(--sans); font-size: 1rem; font-weight: 500; margin-bottom: 0.7rem; line-height: 1.3; }
.kin-card p { font-size: 0.84rem; color: var(--t2); line-height: 1.75; }
.kin-card .kin-detail { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--brd); font-family: var(--mono); font-size: 0.58rem; color: var(--t4); line-height: 1.7; }

/* TARGETS */
.target-cards { display: grid; grid-template-columns: 1fr; gap: 1px; margin-top: 3rem; background: var(--brd); }
.t-card { background: var(--void); display: grid; grid-template-columns: 200px 1fr 1fr; }
.tc-label { padding: 2.5rem; border-right: 1px solid var(--brd); display: flex; flex-direction: column; justify-content: center; }
.tc-label .tn { font-family: var(--mono); font-size: 0.5rem; color: var(--t4); letter-spacing: 0.12em; margin-bottom: 0.7rem; }
.tc-label h3 { font-family: var(--serif) !important; font-size: 1.45rem; font-weight: 400 !important; line-height: 1.25; }
.tc-sci { padding: 2.5rem; border-right: 1px solid var(--brd); }
.tc-sci p { font-size: 0.86rem; color: var(--t2); line-height: 1.8; }
.tc-ev { padding: 2.5rem; }
.tc-ev-label { font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t3); margin-bottom: 1rem; }
.tc-ev-item { font-size: 0.8rem; color: var(--t2); padding: 0.4rem 0; border-bottom: 1px solid var(--brd); line-height: 1.6; }
.tc-ev-item:last-child { border-bottom: none; }

/* SERVICES */
.svc-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; margin-top: 3rem; }
.svc-text p { font-size: 0.92rem; color: var(--t2); line-height: 1.9; margin-bottom: 1.5rem; }
.svc-text p:last-child { margin-bottom: 0; }
.svc-text strong { color: var(--text); font-weight: 500; }

.svc-offerings { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--brd); align-self: start; }
.svc-item { background: var(--void); padding: 2rem; transition: background 0.3s; }
.svc-item:hover { background: var(--surface); }
.svc-item-tag { font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.6rem; }
.svc-item h4 { font-family: var(--sans); font-size: 0.92rem; font-weight: 500; margin-bottom: 0.5rem; line-height: 1.3; }
.svc-item p { font-size: 0.78rem; color: var(--t2); line-height: 1.7; }

/* PIPELINE */
.pipeline-viz { margin-top: 3rem; border: 1px solid var(--brd); background: var(--raised); overflow: hidden; }
.pipeline-header { padding: 1.3rem 2rem; border-bottom: 1px solid var(--brd); font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--t3); }
.pipeline-flow { display: grid; grid-template-columns: repeat(5, 1fr); }
.pl-step { padding: 2rem 1.3rem; border-right: 1px solid var(--brd); position: relative; }
.pl-step:last-child { border-right: none; }
.pl-step::after { content: '→'; position: absolute; right: -0.5rem; top: 50%; transform: translateY(-50%); color: var(--t4); font-size: 0.65rem; z-index: 2; }
.pl-step:last-child::after { display: none; }
.pl-num { font-family: var(--mono); font-size: 0.5rem; color: var(--t4); letter-spacing: 0.1em; margin-bottom: 0.4rem; }
.pl-name { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.5rem; }
.pl-desc { font-size: 0.75rem; color: var(--t2); line-height: 1.6; }
.pl-note { margin-top: 0.4rem; font-family: var(--mono); font-size: 0.5rem; color: var(--t4); line-height: 1.5; }

/* DOMAINS */
.domains-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; margin-top: 3rem; background: var(--brd); }
.d-card { background: var(--void); padding: 2.5rem; transition: 0.3s; position: relative; }
.d-card:hover { background: var(--surface); }
.d-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: 0; transition: opacity 0.3s; }
.d-card:hover::before { opacity: 1; }
.d-tag { font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.9rem; }
.d-card h3 { font-family: var(--sans); font-size: 1rem; font-weight: 500; margin-bottom: 0.6rem; }
.d-card p { font-size: 0.82rem; color: var(--t2); line-height: 1.75; }

/* ETHOS */
.ethos-content { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; margin-top: 3rem; }
.ethos-text p { font-size: 0.92rem; color: var(--t2); line-height: 1.9; margin-bottom: 1.5rem; }
.ethos-text p:last-child { margin-bottom: 0; }
.ethos-refs { padding: 2rem; border: 1px solid var(--brd); background: var(--raised); align-self: start; }
.ethos-refs h4 { font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--t3); margin-bottom: 1.2rem; }
.ref-item { padding: 0.55rem 0; border-bottom: 1px solid var(--brd); font-family: var(--mono); font-size: 0.62rem; color: var(--t4); line-height: 1.6; }
.ref-item:last-child { border-bottom: none; }
.ref-item span { color: var(--t2); }

/* DESCI */
.desci { padding: 5rem 3rem; background: linear-gradient(135deg, var(--c05), var(--a05)); border-top: 1px solid var(--brd); position: relative; z-index: 1; }
.desci-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.desci-inner .s-label, .desci-inner .s-title, .desci-inner .s-body { text-align: center; }
.desci-inner .s-title { margin: 0 auto 1.2rem; }
.desci-inner .s-body { margin: 0 auto 2rem; max-width: 520px; }
.desci-tags { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.desci-tag { font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.4rem 0.9rem; border: 1px solid var(--brd); color: var(--t3); transition: 0.3s; }
.desci-tag:hover { border-color: var(--cyan); color: var(--cyan); }

/* FOOTER */
.footer { position: relative; z-index: 1; padding: 4rem 3rem 2rem; border-top: 1px solid var(--brd); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 3rem; flex-wrap: wrap; gap: 2.5rem; }
.footer-brand { max-width: 380px; }
.footer-brand .n-name { font-size: 0.8rem; margin-bottom: 0.8rem; display: block; }
.footer-brand p { font-size: 0.78rem; color: var(--t3); line-height: 1.7; }
.footer-col h4 { font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t3); margin-bottom: 0.9rem; }
.footer-col a { display: block; font-size: 0.8rem; color: var(--t2) !important; text-decoration: none !important; margin-bottom: 0.45rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--cyan) !important; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; padding-top: 2rem; border-top: 1px solid var(--brd); flex-wrap: wrap; gap: 1rem; }
.footer-legal { font-family: var(--mono); font-size: 0.52rem; color: var(--t4); letter-spacing: 0.06em; line-height: 1.8; }
.footer-coords { font-family: var(--mono); font-size: 0.52rem; color: var(--t4); letter-spacing: 0.06em; text-align: right; line-height: 1.8; }

/* ANIMATIONS */
@keyframes up { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.rv { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.rv.v { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .cascade-stages, .pipeline-flow { grid-template-columns: 1fr 1fr; }
  .c-stg:nth-child(2n), .pl-step:nth-child(2n) { border-right: none; }
  .c-stg:nth-child(2n)::after, .pl-step:nth-child(2n)::after { display: none; }
  .c-stg:last-child, .pl-step:last-child { grid-column: 1 / -1; }
  .kinetics-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .cascade-stages, .pipeline-flow { grid-template-columns: 1fr; }
  .c-stg, .pl-step { border-right: none !important; border-bottom: 1px solid var(--brd); }
  .c-stg::after, .pl-step::after { display: none !important; }
  .c-stg:last-child, .pl-step:last-child { border-bottom: none; }
  .t-card { grid-template-columns: 1fr; }
  .tc-label { border-right: none; border-bottom: 1px solid var(--brd); padding: 1.5rem 2rem; }
  .tc-sci { border-right: none; border-bottom: 1px solid var(--brd); }
  .mech-cols, .ethos-content, .svc-layout { grid-template-columns: 1fr; }
  .mech-aside { position: static; }
  .svc-offerings { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { padding: 1.2rem 1.5rem; }
  .n-links { display: none; }
  .n-ham { display: flex; }
  .hero { padding: 7rem 1.5rem 3rem; }
  .sec { padding: 4.5rem 1.5rem; }
  .footer { padding: 3rem 1.5rem 1.5rem; }
  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; }
  .footer-coords { text-align: left; }
  .desci { padding: 3.5rem 1.5rem; }
}
