/* Teo Tech Solutions: holding page ("under construction")
   Tokens mirror docs/01-brand-and-design.md so the real site can reuse them. */

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0F1B2D;
  --bg-deep: #0A1322;
  --bg-raised: #16243A;
  --line: #22324D;
  --text: #FFFFFF;
  --text-soft: #CBD5E1;
  --muted: #8394AD;
  --accent: #60A5FA;
  --accent-strong: #2563EB;
  --accent-2: #22D3EE;
  --grid: rgb(96 165 250 / 0.07);
  --radius: 14px;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

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

html, body { margin: 0; height: 100%; }

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: clamp(0.92rem, 0.88rem + 0.2vw, 1rem);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Language visibility: no JS → English only */
html[lang="en"] [data-lang="el"],
html[lang="el"] [data-lang="en"] { display: none !important; }

/* ---------- Background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg__grid {
  position: absolute;
  inset: -48px;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 42%, #000 25%, transparent 72%);
          mask-image: radial-gradient(ellipse at 50% 42%, #000 25%, transparent 72%);
  animation: grid-drift 20s linear infinite;
}
.bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.32;
  will-change: transform;
}
.bg__orb--a {
  width: 460px; height: 460px;
  background: var(--accent-strong);
  top: 8%; left: 12%;
  animation: float-a 18s ease-in-out infinite alternate;
}
.bg__orb--b {
  width: 360px; height: 360px;
  background: var(--accent-2);
  bottom: 6%; right: 10%;
  opacity: 0.18;
  animation: float-b 24s ease-in-out infinite alternate;
}
@keyframes grid-drift { to { transform: translate(48px, 48px); } }
@keyframes float-a { to { transform: translate(80px, 60px) scale(1.08); } }
@keyframes float-b { to { transform: translate(-70px, -50px) scale(0.94); } }

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  justify-content: flex-end;
  padding: 1.25rem clamp(1rem, 4vw, 2rem);
}
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: rgb(10 19 34 / 0.6);
}
.lang-switch button {
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  transition: color .2s, background-color .2s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] {
  color: var(--text);
  background: var(--accent-strong);
}

/* ---------- Main ---------- */
main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 1rem clamp(1rem, 4vw, 2rem) 3rem;
}
.hero {
  width: 100%;
  max-width: 720px;
  text-align: center;
}

/* Logo */
.logo {
  display: block;
  width: clamp(220px, 55vw, 340px);
  height: auto;
  margin: 0 auto 2.25rem;
  overflow: visible;
}
.logo-word { fill: var(--text); }
.logo-chevron,
.logo-cursor { fill: var(--accent); }
.logo-tagline { fill: var(--text-soft); }
.logo-chevron {
  animation: chevron-in .7s var(--ease-out) .15s both;
}
.logo-cursor {
  animation: blink 1.1s steps(1, end) 1s 9;
}
.logo:hover .logo-cursor { animation: blink 1.1s steps(1, end) infinite; }
@keyframes chevron-in {
  from { transform: translateX(-10px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
@keyframes blink { 50% { opacity: 0; } }

/* Text */
.label {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  color: var(--accent);
}
h1 {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}
.lead {
  text-wrap: balance;
  margin: 0 auto 2rem;
  max-width: 52ch;
}

/* Terminal */
.terminal {
  margin: 0 auto 2rem;
  max-width: 560px;
  text-align: left;
  background: rgb(10 19 34 / 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgb(96 165 250 / 0.04), 0 24px 60px rgb(0 0 0 / 0.35);
  overflow: hidden;
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
}
.terminal__bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #33435E;
}
.terminal__bar em {
  margin-left: 0.6rem;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--muted);
}
.terminal__body {
  margin: 0;
  padding: 1rem 1.1rem 1.15rem;
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 7.6em;
}
.t-line { display: block; }
.t-line[data-type="cmd"]::before { content: "› "; color: var(--accent); font-weight: 700; }
.t-line[data-type="cmd"] { color: var(--text); }
.t-line[data-type="out"] { color: var(--muted); }
.t-line[data-type="status"] { color: var(--text-soft); }
.t-dot {
  display: inline-block;
  color: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
.t-caret {
  display: inline-block;
  color: var(--accent);
  animation: blink 1.1s steps(1, end) infinite;
}
@keyframes pulse { 50% { opacity: 0.25; } }

/* Contact + links */
.contact { margin: 0 0 1.5rem; }
.contact a { font-weight: 700; white-space: nowrap; }
.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--text-soft);
  background: rgb(22 36 58 / 0.6);
  font-size: 0.85rem;
  transition: transform .15s var(--ease-out), border-color .2s, box-shadow .2s, color .2s;
}
.btn:hover {
  text-decoration: none;
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 0 14px rgb(96 165 250 / 0.3);
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}

/* Entrance */
.reveal {
  animation: rise .7s var(--ease-out) both;
  animation-delay: 200ms;
}
.d-1 { animation-delay: 290ms; }
.d-2 { animation-delay: 380ms; }
.d-3 { animation-delay: 470ms; }
.d-4 { animation-delay: 560ms; }
.d-5 { animation-delay: 650ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Footer ---------- */
footer {
  padding: 1.5rem clamp(1rem, 4vw, 2rem) 2rem;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--muted);
  border-top: 1px solid rgb(34 50 77 / 0.6);
  background: rgb(10 19 34 / 0.5);
}
footer p { margin: 0; }

/* ---------- Small screens ---------- */
@media (max-width: 480px) {
  .terminal__body { font-size: 0.8rem; }
  .bg__orb--a { width: 300px; height: 300px; }
  .bg__orb--b { width: 240px; height: 240px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
