/* AetherionLabs — shared look for aetherionlabs.ai (home) and aetherionlabs.si (student portal).
   Tokens mirror the original Horizons/Tailwind build: near-black surfaces, #0066ff primary, Outfit type. */
:root{
  --background:hsl(0 0% 4%); --foreground:hsl(0 0% 75%);
  --card:hsl(0 0% 7%); --border:hsl(0 0% 10%); --input:hsl(0 0% 10%);
  --primary:hsl(216 100% 50%); --primary-fg:#fff; --blue-400:#60a5fa;
  --muted-fg:hsl(0 0% 60%); --destructive:hsl(0 84% 60%);
  --radius:.5rem;
  color-scheme:dark;
}
*,*::before,*::after{box-sizing:border-box;border:0 solid var(--border)}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--background);color:var(--foreground);font-family:Outfit,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5;overflow-x:clip;-webkit-font-smoothing:antialiased}
::selection{background:rgb(0 102 255 / .3);color:#fff}
h1,h2,h3{margin:0;color:#fff;text-wrap:balance;font-weight:700}
p{margin:0;line-height:1.625;max-width:65ch}
button,input,textarea{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0;padding:0}
button:focus-visible,input:focus-visible,textarea:focus-visible,a:focus-visible{outline:none;box-shadow:0 0 0 1px var(--primary)}
img{display:block;max-width:100%}
.container{margin-inline:auto;max-width:80rem;padding-inline:1rem}
@media (min-width:640px){.container{padding-inline:1.5rem}}
@media (min-width:1024px){.container{padding-inline:2rem}}
.section{padding-block:6rem}
@media (min-width:768px){.section{padding-block:8rem}}
.section-last{padding-bottom:8rem}

/* hero */
.hero{position:relative;min-height:100dvh;display:flex;align-items:center;justify-content:center;overflow:hidden}
.hero-bg{position:absolute;inset:0;z-index:0}
.hero-bg img{width:100%;height:100%;object-fit:cover;opacity:.4}
.hero-fade{position:absolute;inset:0;background:linear-gradient(to bottom,rgb(10 10 10 / .4),rgb(10 10 10 / .8),var(--background))}
.hero-inner{position:relative;z-index:1;padding-top:5rem;padding-bottom:3rem;display:flex;flex-direction:column;align-items:center;text-align:center}
.hero-copy{max-width:56rem;margin-inline:auto;display:flex;flex-direction:column;align-items:center}
.badge{display:inline-flex;align-items:center;gap:.5rem;margin-bottom:2rem;padding:.5rem 1rem;border-radius:9999px;background:rgb(0 102 255 / .1);border:1px solid rgb(0 102 255 / .2);font-size:.875rem;font-weight:500;color:var(--primary);letter-spacing:.025em;text-transform:uppercase}
.badge .dot{width:.5rem;height:.5rem;border-radius:9999px;background:var(--primary);animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}
@keyframes pulse{50%{opacity:.5}}
.hero h1{font-size:3rem;line-height:1.25;letter-spacing:-.025em;margin-bottom:1.5rem}
@media (min-width:768px){.hero h1{font-size:4.5rem}}
@media (min-width:1024px){.hero h1{font-size:6rem}}
.grad{color:transparent;background:linear-gradient(to right,var(--primary),var(--blue-400));-webkit-background-clip:text;background-clip:text}
.lede{font-size:1.25rem;line-height:1.625;margin-bottom:3rem;max-width:42rem}
@media (min-width:768px){.lede{font-size:1.5rem}}
.btn-cta{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;background:var(--primary);color:var(--primary-fg);font-weight:500;font-size:1.125rem;line-height:1.75rem;padding:.625rem 2rem;border-radius:.5rem;box-shadow:0 0 20px rgba(0,102,255,.3);transition:all .3s}
.btn-cta:hover{background:rgb(0 102 255 / .9);filter:brightness(1.1);box-shadow:0 0 30px rgba(0,102,255,.5)}
.btn-cta:active{transform:scale(.98)}

/* divider */
.divider{display:flex;justify-content:center;padding-block:3rem}
.divider-track{position:relative;width:6rem;height:.25rem;border-radius:9999px;background:var(--border);overflow:hidden}
.divider-pulse{position:absolute;inset:0;width:50%;background:rgb(0 102 255 / .2);animation:pulse 3s ease-in-out infinite}

/* pillars */
.section-head{text-align:center;margin-bottom:4rem}
.section-head h2{font-size:1.875rem;line-height:1.2;margin-bottom:1.5rem}
@media (min-width:768px){.section-head h2{font-size:3rem}}
.section-head p{font-size:1.125rem;max-width:42rem;margin-inline:auto}
.pillars{display:grid;grid-template-columns:1fr;gap:1.5rem;max-width:64rem;margin-inline:auto}
@media (min-width:768px){.pillars{grid-template-columns:1fr 1fr}.card-wide{grid-column:span 2}}
.card{position:relative;overflow:hidden;display:flex;flex-direction:column;height:100%;border-radius:.75rem;border:1px solid var(--border);background:var(--card);box-shadow:0 1px 3px 0 rgb(0 0 0 / .1),0 1px 2px -1px rgb(0 0 0 / .1);transition:all .3s}
.card:hover{border-color:rgb(0 102 255 / .5);transform:translateY(-.25rem);box-shadow:0 8px 30px rgba(0,102,255,.1)}
.card-bar{position:absolute;left:0;top:0;bottom:0;width:.25rem;background:rgb(0 102 255 / .2);transition:background-color .3s}
.card:hover .card-bar{background:var(--primary)}
.card-head{display:flex;flex-direction:column;gap:.375rem;padding:1.5rem 1.5rem 1.5rem 2rem}
.icon-box{width:3rem;height:3rem;border-radius:.75rem;background:rgb(0 102 255 / .1);display:flex;align-items:center;justify-content:center;margin-bottom:1rem;transition:transform .3s}
.card:hover .icon-box{transform:scale(1.1)}
.icon-box svg{width:1.5rem;height:1.5rem;color:var(--primary)}
.card h3{font-size:1.5rem;font-weight:600;line-height:1;letter-spacing:-.025em}
.card-body{flex:1;padding:0 1.5rem 1.5rem 2rem}
.card-body p{font-size:1.125rem;line-height:1.625}

/* contact */
.contact{max-width:64rem;margin-inline:auto;background:var(--card);border:1px solid var(--border);border-radius:1.5rem;overflow:hidden;box-shadow:0 25px 50px -12px rgb(0 0 0 / .25);display:grid}
@media (min-width:768px){.contact{grid-template-columns:1fr 1fr}}
.contact-intro{padding:2.5rem;background:linear-gradient(to bottom right,var(--card),var(--background));display:flex;flex-direction:column;justify-content:center}
.contact-form{padding:2.5rem;background:rgb(10 10 10 / .5);border-left:1px solid var(--border)}
@media (min-width:768px){.contact-intro,.contact-form{padding:4rem}}
.contact h2{font-size:1.875rem;line-height:1.2;margin-bottom:1rem}
@media (min-width:768px){.contact h2{font-size:2.25rem}}
.contact-intro p{font-size:1.125rem;margin-bottom:2rem}
.steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:1rem}
.steps li{display:flex;align-items:center;gap:.75rem}
.step-n{width:2rem;height:2rem;border-radius:9999px;background:rgb(0 102 255 / .1);display:flex;align-items:center;justify-content:center;color:var(--primary);font-weight:700;flex:none}
form{display:flex;flex-direction:column;gap:1.5rem}
.field{display:flex;flex-direction:column;gap:.5rem}
label{font-size:.875rem;font-weight:500;line-height:1}
input,textarea{width:100%;border-radius:.375rem;border:1px solid var(--border);background:rgb(26 26 26 / .5);color:#fff;padding:.25rem .75rem;font-size:1rem;box-shadow:0 1px 2px 0 rgb(0 0 0 / .05);transition:border-color .15s,box-shadow .15s}
input{height:2.25rem}
textarea{min-height:60px;padding-block:.5rem;resize:none}
@media (min-width:768px){input,textarea{font-size:.875rem}}
input::placeholder,textarea::placeholder{color:var(--muted-fg)}
.err{display:none;font-size:.875rem;color:var(--destructive)}
.err:not(:empty){display:block}
.btn-submit{width:100%;display:inline-flex;align-items:center;justify-content:center;background:var(--primary);color:#fff;font-weight:500;font-size:1.125rem;line-height:1.75rem;padding:.625rem 1rem;border-radius:.375rem;transition:all .3s}
.btn-submit:hover{background:rgb(0 102 255 / .9)}
.btn-submit:active{transform:scale(.98)}
.btn-submit:disabled{opacity:.5;pointer-events:none}

.login-cta{padding:0 0 6rem;text-align:center}
.login-cta .container{display:flex;flex-direction:column;align-items:center;gap:1rem}
.login-cta .btn-cta{min-width:12rem;text-decoration:none}
.login-note{color:var(--muted-fg);font-size:.875rem;max-width:none}
.footer{border-top:1px solid var(--border);padding-block:2rem;text-align:center}
.footer p{max-width:none;color:var(--muted-fg);font-size:.875rem}

/* scroll-in (stands in for the original framer-motion fades) */
.reveal{opacity:0;transform:translateY(20px);transition:opacity .5s ease-out var(--delay,0s),transform .5s ease-out var(--delay,0s)}
.reveal-x{transform:translateX(-20px)}.reveal-right{transform:translateX(20px)}
.reveal.in{opacity:1;transform:none}
.hero .reveal{transform:translateY(30px);transition-duration:.8s}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}*{animation:none!important}}

/* toast (sonner look-alike) */
.toaster{position:fixed;right:1rem;bottom:1rem;z-index:50;display:flex;flex-direction:column;gap:.5rem;pointer-events:none}
.toast{pointer-events:auto;min-width:min(356px,calc(100vw - 2rem));max-width:356px;background:#000;color:#fff;border:1px solid hsl(0 0% 20%);border-radius:.5rem;padding:1rem;font-size:.8125rem;display:flex;gap:.5rem;align-items:flex-start;box-shadow:0 4px 12px rgb(0 0 0 / .2);animation:toast-in .35s cubic-bezier(.21,1.02,.73,1)}
.toast svg{width:1.125rem;height:1.125rem;flex:none;color:#22c55e}
@keyframes toast-in{from{opacity:0;transform:translateY(100%)}to{opacity:1;transform:none}}

/* ---- student portal (aetherionlabs.si) ---- */
.portal{min-height:100dvh;display:flex;flex-direction:column}
.portal-top{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.25rem 0}
.portal-top .badge{margin:0}
.portal-main{flex:1;display:flex;flex-direction:column;justify-content:center;padding-block:3rem}
.gate{max-width:28rem;margin-inline:auto;width:100%;background:var(--card);border:1px solid var(--border);border-radius:1.5rem;padding:2.5rem;box-shadow:0 25px 50px -12px rgb(0 0 0 / .25)}
.gate h1{font-size:2rem;line-height:1.15;letter-spacing:-.025em;margin-bottom:.75rem}
.gate .sub{color:var(--muted-fg);margin-bottom:1.75rem}
.gate .pw{display:flex;gap:.5rem}
.gate .pw input{height:2.75rem;font-size:1rem;letter-spacing:.08em}
.gate .pw button{flex:none;width:2.75rem;height:2.75rem;border-radius:.375rem;border:1px solid var(--border);background:rgb(26 26 26 / .5);display:grid;place-items:center;color:var(--muted-fg)}
.gate .pw button svg{width:1.125rem;height:1.125rem}
.remember{display:flex;align-items:center;gap:.5rem;font-size:.875rem;color:var(--muted-fg);margin-top:-.5rem}
.remember input{width:1rem;height:1rem;accent-color:var(--primary)}
.apps-head{text-align:center;margin-bottom:3rem}
.apps-head h1{font-size:2.25rem;line-height:1.15;letter-spacing:-.025em;margin-bottom:.75rem}
@media (min-width:768px){.apps-head h1{font-size:3rem}}
.apps-head p{margin-inline:auto;color:var(--muted-fg);font-size:1.125rem}
.apps{display:grid;grid-template-columns:1fr;gap:1.5rem;max-width:64rem;margin-inline:auto}
@media (min-width:768px){.apps{grid-template-columns:1fr 1fr}}
.app .card-body p{font-size:1rem;color:var(--foreground)}
.app .tag{display:inline-block;font-size:.75rem;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--primary);margin-bottom:.75rem}
.app-actions{display:flex;flex-wrap:wrap;gap:.75rem;padding:0 1.5rem 1.5rem 2rem}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;white-space:nowrap;border-radius:.375rem;font-size:.875rem;font-weight:500;height:2.25rem;padding-inline:1rem;transition:all .2s;text-decoration:none}
.btn-primary{background:var(--primary);color:#fff;box-shadow:0 0 20px rgba(0,102,255,.2)}
.btn-primary:hover{background:rgb(0 102 255 / .9);box-shadow:0 0 30px rgba(0,102,255,.4)}
.btn-ghost{border:1px solid var(--border);color:#fff;background:rgb(26 26 26 / .5)}
.btn-ghost:hover{border-color:rgb(0 102 255 / .5)}
.btn-link{color:var(--muted-fg);height:auto;padding:0}
.btn-link:hover{color:#fff}
.app.soon{opacity:.55}
.app.soon .icon-box{background:rgb(255 255 255 / .05)}.app.soon .icon-box svg{color:var(--muted-fg)}
.hint{font-size:.8125rem;color:var(--muted-fg);text-align:center;margin-top:2rem}
.hint a{color:var(--foreground)}
