/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --navy:   #14213d;
  --navy-dark: #0a1628;
  --orange: #fca311;
  --black:  #0a0a0a;
  --white:  #ffffff;
  --gray:   #e5e5e5;
  --text-muted: #8a9ab5;

  --font-body:    'PT Sans', sans-serif;
  --font-mono:    'PT Mono', monospace;
  --font-heading: 'Lora', serif;
}

/* ── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
}
h3 {
  font-family: var(--font-heading);
  font-weight: 300;
}

/* ── BUTTONS ────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: var(--black);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  letter-spacing: 0.03em;
  border-radius: 4px;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }

.btn-secondary {
  display: inline-block;
  color: var(--white);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--orange);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.btn-secondary:hover { color: var(--orange); }

.btn-outline {
  display: inline-block;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.btn-outline:hover { color: var(--text-muted); background: rgba(138,154,181,0.07); }

.copy-icon { vertical-align: middle; opacity: 0.6; margin-left: 3px; }

/* ── NAV ────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 4rem;
  background: var(--navy-dark);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-actions { display: flex; align-items: center; gap: 3rem; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-ctas { display: flex; align-items: center; gap: 1rem; }
.nav-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--white); }
.nav-link--active { color: var(--white); }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  padding: 0.25rem;
  line-height: 0;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 60px;
  right: 1.5rem;
  background: var(--navy-dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 1rem 1.5rem;
  gap: 0.75rem;
  z-index: 101;
}
.mobile-menu--open { display: flex; }
.mobile-menu-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.mobile-menu-link:hover { color: var(--white); }
.mobile-menu-link--active { color: var(--white); }

/* ── SECTION SHARED ─────────────────────────────────── */
section { padding: 7rem 4rem; }

.section-header {
  margin-bottom: 4rem;
}
.section-label {
  font-size: 0.8rem;
  color: var(--orange);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* ── HERO ───────────────────────────────────────────── */
.hero {
  /* min-height: 100vh; */
  display: flex;
  align-items: center;
  background: var(--black);
  padding-top: 8rem;
}
.hero-content { max-width: 760px; }

.hero-eyebrow {
  font-size: 0.85rem;
  color: var(--orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-description {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 600px;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }

/* ── FIT ────────────────────────────────────────────── */
.fit {
  background: var(--black);
}
.fit-grid {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 4rem;
}
.fit-col {
  flex: 1;
}
.fit-col h2 {
  margin-bottom: 1.75rem;
}
.fit-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
}
@media (max-width: 768px) {
  .fit-grid { flex-direction: column; }
}
@media (max-width: 480px) {
  .fit-list { grid-template-columns: 1fr; }
}
.fit-col--not .fit-list {
  grid-template-columns: 1fr;
}
.fit-list li {
  font-size: 0.95rem;
  color: var(--text-muted);
  background: var(--navy-dark);
  padding: 1.5rem;
  position: relative;
}
.fit-detail {
  display: block;
  margin-top: 0.3rem;
  color: rgba(138, 154, 181, 0.6);
  font-size: 0.875rem;
  transition: color 0.2s;
}

/* ── SERVICES ───────────────────────────────────────── */
.services { background: var(--navy); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
}
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-card {
  display: block;
  background: var(--navy-dark);
  padding: 2.5rem;
  transition: background 0.2s;
  text-decoration: none;
}
.service-card:hover { background: var(--black); }
.service-card:hover p { color: var(--orange); }
.service-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--orange);
  display: block;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.services-demo-link {
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.service-card p { color: var(--text-muted); font-size: 0.95rem; transition: color 0.2s; }

/* ── TESTIMONIALS ───────────────────────────────────── */
.testimonials { background: var(--navy); }

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  background: var(--navy-dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 2.5rem;
}
.testimonial-quote {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--white);
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.testimonial-author img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(20%);
  flex-shrink: 0;
}
.testimonial-name {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.testimonial-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── TEAM ───────────────────────────────────────────── */
.team { background: var(--black); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  max-width: 720px;
}
.team-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: top;
  margin-bottom: 1.25rem;
  filter: grayscale(20%);
  border-radius: 8px;
}
.team-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}
.team-title {
  font-size: 0.8rem;
  color: var(--orange);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.team-card p:not(.team-title) { color: var(--gray); font-size: 0.95rem; }

/* ── CONTACT ────────────────────────────────────────── */
.contact {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.contact-inner { max-width: 600px; }
.contact h2 { margin-bottom: 1rem; }
.contact > .contact-inner > p:not(.section-label) {
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.contact-actions { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }

/* ── FOOTER ─────────────────────────────────────────── */
footer {
  background: var(--black);
  padding: 2rem 4rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.footer-left, .footer-right {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-right { align-items: flex-end; }
.footer-copy {
  font-size: 1rem;
  color: var(--text-muted);
}
.footer-contact {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-contact:hover { color: var(--orange); }
.footer-vat {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}
.footer-easter-hint {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.45);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  letter-spacing: 0.1em;
  white-space: nowrap;
  display: none;
}
.footer-easter-key {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 4px;
  padding: 0.15rem 0.35rem;
  background: rgba(255,255,255,0.06);
  line-height: 1;
}
#main-footer { position: relative; }
#main-footer:hover .footer-easter-hint { opacity: 1; }

@media (min-width: 700px) {
  .footer-easter-hint { display: inline; }
}

.snake-terminal {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.snake-terminal.open {
  max-height: 600px;
}
@media (max-width: 699px) {
  .snake-terminal { display: none !important; }
}
.snake-window {
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.snake-terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  background: var(--navy);
}
.snake-terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.snake-terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-left: auto;
  margin-right: auto;
}
#snake-canvas {
  display: block;
}
@media (max-width: 699px) {
  footer { flex-direction: column; align-items: flex-start; gap: 1.5rem; padding: 2rem 1.5rem; }
  .footer-right { align-items: flex-start; }
}

.btn-text-narrow { display: none; }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  section { padding: 5rem 1.5rem; }
  .hero { padding-top: 7rem; }
  footer { padding: 2.5rem 1.5rem; }
  .nav-link { display: none; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-actions { gap: 0.75rem; }
  .btn-primary, .btn-outline { font-size: 0.8rem; padding: 0.5rem 1rem; }
  .btn-text-wide { display: none; }
  .btn-text-narrow { display: inline; }
}

/* ── INVOICE DEMO PAGE ──────────────────────────────── */
.demo-page { background: var(--black); }
.demo-inner { max-width: 640px; }

.demo-inner h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.demo-description {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* Drop zone */
.drop-zone {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: var(--navy-dark);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.drop-zone.is-dragover {
  border-color: var(--orange);
  background: var(--navy);
}

/* State visibility */
.drop-state { display: none; flex-direction: column; align-items: center; gap: 1.25rem; padding: 3rem 2rem; text-align: center; }
.drop-zone[data-state="idle"]       .drop-idle       { display: flex; }
.drop-zone[data-state="processing"] .drop-processing  { display: flex; }
.drop-zone[data-state="done"]       .drop-done        { display: flex; }
.drop-zone[data-state="error"]      .drop-error       { display: flex; }

.drop-icon { color: var(--text-muted); }
.drop-icon--success { color: var(--orange); }
.drop-icon--error   { color: var(--orange); opacity: 0.6; }

.drop-label { font-size: 1rem; color: var(--white); }
.drop-sub   { font-size: 0.85rem; color: var(--text-muted); margin-top: -0.5rem; }
.drop-error-msg { font-size: 0.9rem; color: var(--text-muted); }

.drop-done  { gap: 1.25rem; }
.drop-retry { margin-top: 0.25rem; background: none; border: none; cursor: pointer; font-family: var(--font-body); font-size: 0.9rem; }

/* Processing animation */
.processing-bars {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 36px;
}
.processing-bars span {
  display: block;
  width: 3px;
  height: 100%;
  background: var(--orange);
  border-radius: 2px;
  transform-origin: bottom;
  animation: bar-pulse 1.2s ease-in-out infinite;
  opacity: 0.2;
}
.processing-bars span:nth-child(1) { animation-delay: 0s; }
.processing-bars span:nth-child(2) { animation-delay: 0.15s; }
.processing-bars span:nth-child(3) { animation-delay: 0.3s; }
.processing-bars span:nth-child(4) { animation-delay: 0.45s; }
.processing-bars span:nth-child(5) { animation-delay: 0.6s; }

@keyframes bar-pulse {
  0%, 100% { transform: scaleY(0.25); opacity: 0.2; }
  50%       { transform: scaleY(1);   opacity: 1; }
}

/* ── BLOG LIST ──────────────────────────────────────── */
.blog-page { background: var(--black); }
.blog-inner { max-width: 1100px; }
.blog-inner h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 3rem;
}
.blog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.blog-card {
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateZ(0);
}
.blog-card-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.blog-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
.blog-card-credit {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.45);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}
.blog-card-body {
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-date {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.blog-card-title {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.blog-card-title a { color: var(--white); transition: color 0.2s; }
.blog-card-title a:hover { color: var(--orange); }
.blog-author {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.blog-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.blog-read-more { font-size: 0.85rem; color: var(--orange); transition: opacity 0.2s; }
.blog-read-more:hover { opacity: 0.75; }
@media (max-width: 768px) { .blog-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .blog-list { grid-template-columns: 1fr; } }

/* ── BLOG POST ──────────────────────────────────────── */
.post-tldr {
  border-left: 3px solid var(--orange);
  padding-left: 1.25rem;
  margin-bottom: 2.5rem;
}
.post-tldr h2 {
  color: var(--white);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: 0.75rem;
}
.post-tldr p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}
.post-tldr p:last-child { margin-bottom: 0; }
.post-page { background: var(--black); }
.post-inner { max-width: 680px; }
.post-inner h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.post-hero-wrap {
  position: relative;
  margin-bottom: 1rem;
}
.post-hero-img {
  width: 100%;
  border-radius: 8px;
  display: block;
}
.post-hero-credit {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.45);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}
.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}
.post-author {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.post-date {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.post-body ul,
.post-body ol {
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}
.post-body li {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}
.post-body p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.post-body h2 {
  color: var(--white);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-top: 4rem;
  margin-bottom: 1rem;
}
.post-body .post-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}
.post-body .post-table th,
.post-body .post-table td {
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  vertical-align: top;
  line-height: 1.6;
}
.post-body .post-table th {
  color: var(--white);
  font-weight: 600;
  background: rgba(255,255,255,0.04);
}
.post-body .post-table tr:first-child th:first-child { border-top-left-radius: 6px; }
.post-body .post-table tr:first-child th:last-child { border-top-right-radius: 6px; }
.post-body .post-table td:first-child { color: var(--white); }
@media (max-width: 600px) {
  .post-body .post-table { font-size: 0.82rem; }
  .post-body .post-table th,
  .post-body .post-table td { padding: 0.5rem 0.6rem; }
}
.post-back {
  display: inline-block;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.post-back:hover { color: var(--orange); }
