/* Erevos Systems - ensimmäinen sivustoversio */

:root {
  --background: #070707;
  --background-soft: #0d0d0d;
  --surface: rgba(20, 20, 20, 0.78);
  --surface-solid: #131313;
  --gold: #d6a84f;
  --gold-light: #f1cf83;
  --gold-dark: #7c5a20;
  --text: #f5f2ea;
  --muted: #aaa69d;
  --border: rgba(214, 168, 79, 0.22);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top, rgba(214, 168, 79, 0.06), transparent 32rem),
    var(--background);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 110px 0;
}

.background-glow {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.1;
  pointer-events: none;
}

.background-glow-one {
  top: 10%;
  right: -180px;
  background: var(--gold);
}

.background-glow-two {
  bottom: 5%;
  left: -220px;
  background: #8f681f;
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  width: 100%;
  border-bottom: 1px solid transparent;
  background: rgba(7, 7, 7, 0.78);
  backdrop-filter: blur(18px);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  border-color: var(--border);
  background: rgba(7, 7, 7, 0.94);
}

.navigation {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(214, 168, 79, 0.18), rgba(214, 168, 79, 0.03));
  color: var(--gold-light);
  font-family: "Orbitron", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: inset 0 0 25px rgba(214, 168, 79, 0.08);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  color: var(--text);
  font-family: "Orbitron", sans-serif;
  font-size: 0.98rem;
  letter-spacing: 0.13em;
}

.brand-text small {
  margin-top: 6px;
  color: var(--gold);
  font-size: 0.58rem;
  letter-spacing: 0.42em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  position: relative;
  color: #cfcbc2;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.main-nav a:not(.nav-contact)::after {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transition: width 0.2s ease;
}

.main-nav a:hover {
  color: var(--gold-light);
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-contact {
  padding: 11px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(214, 168, 79, 0.07);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(214, 168, 79, 0.05);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--gold-light);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  display: flex;
  min-height: 100vh;
  align-items: center;
  padding-top: 150px;
}

.hero-grid {
  display: grid;
  align-items: center;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 75px;
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--gold);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.hero h1,
.section-heading h2,
.about-content h2,
.contact-content h2 {
  font-family: "Orbitron", sans-serif;
  line-height: 1.15;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  letter-spacing: -0.045em;
}

.hero h1 span {
  display: block;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), #a77b2f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content > p {
  max-width: 700px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: var(--gold);
  background: linear-gradient(135deg, #dfb55f, #a5772d);
  color: #090806;
  box-shadow: 0 10px 35px rgba(214, 168, 79, 0.2);
}

.button-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

.hero-highlights {
  display: grid;
  margin-top: 56px;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hero-highlights div {
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.hero-highlights strong,
.hero-highlights span {
  display: block;
}

.hero-highlights strong {
  color: var(--gold-light);
  font-size: 0.92rem;
}

.hero-highlights span {
  margin-top: 5px;
  color: #88847c;
  font-size: 0.75rem;
  line-height: 1.4;
}

.system-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(214, 168, 79, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 168, 79, 0.035) 1px, transparent 1px),
    rgba(13, 13, 13, 0.86);
  background-size: 26px 26px;
  box-shadow: var(--shadow), inset 0 0 80px rgba(214, 168, 79, 0.03);
  transform: perspective(1000px) rotateY(-4deg);
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-dark);
}

.panel-title {
  margin-left: auto;
  color: #706d66;
  font-family: "Orbitron", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.panel-content {
  padding: 32px;
}

.status-line {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  gap: 20px;
  font-size: 0.78rem;
}

.status-line:first-child {
  margin-top: 0;
}

.status-line span {
  color: var(--muted);
}

.status-line strong {
  color: var(--gold-light);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.progress {
  overflow: hidden;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
}

.terminal {
  margin-top: 34px;
  padding: 22px;
  border: 1px solid rgba(214, 168, 79, 0.16);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.48);
  font-family: Consolas, monospace;
  font-size: 0.75rem;
}

.terminal p {
  margin-top: 8px;
  color: #858178;
}

.terminal p:first-child {
  margin-top: 0;
}

.terminal span {
  color: var(--gold);
}

.terminal-active {
  color: var(--gold-light) !important;
}

.cursor {
  animation: blink 0.9s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.services-section,
.about-section {
  border-top: 1px solid rgba(214, 168, 79, 0.08);
  border-bottom: 1px solid rgba(214, 168, 79, 0.08);
  background: rgba(255, 255, 255, 0.012);
}

.section-heading {
  display: grid;
  max-width: 850px;
  margin-bottom: 55px;
  grid-template-columns: auto 1fr;
  gap: 24px;
}

.section-number {
  padding-top: 5px;
  color: rgba(214, 168, 79, 0.36);
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
}

.section-heading h2,
.about-content h2,
.contact-content h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.035em;
}

.section-heading p,
.about-content p,
.contact-content p {
  max-width: 700px;
  margin-top: 18px;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.service-card,
.software-card,
.stat-card,
.contact-form {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.service-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.service-card::before {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
  filter: blur(80px);
  opacity: 0.06;
}

.service-card:hover {
  border-color: rgba(214, 168, 79, 0.45);
  transform: translateY(-5px);
}

.card-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(214, 168, 79, 0.07);
  color: var(--gold-light);
  font-family: "Orbitron", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.service-card h3,
.software-card h3 {
  margin-top: 25px;
  font-family: "Orbitron", sans-serif;
  font-size: 1.25rem;
}

.service-card p,
.software-card p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.service-card ul {
  display: grid;
  margin-top: 23px;
  gap: 10px;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 18px;
  color: #d0cbc1;
  font-size: 0.82rem;
}

.service-card li::before {
  position: absolute;
  left: 0;
  color: var(--gold);
  content: "◆";
  font-size: 0.5rem;
  transform: translateY(5px);
}

.software-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.software-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--radius);
}

.software-label {
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.software-card p {
  flex: 1;
}

.status-badge {
  align-self: flex-start;
  margin-top: 28px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(214, 168, 79, 0.06);
  color: var(--gold-light);
  font-size: 0.67rem;
  font-weight: 700;
}

.about-grid,
.contact-grid {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.about-content p + p {
  margin-top: 14px;
}

.quote {
  margin-top: 30px;
  padding: 24px;
  border-left: 2px solid var(--gold);
  background: rgba(214, 168, 79, 0.04);
  color: #d7d2c8;
  font-style: italic;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.stat-card {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
  border-radius: 18px;
}

.stat-card strong {
  color: var(--gold-light);
  font-family: "Orbitron", sans-serif;
  font-size: 2rem;
}

.stat-card span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.contact-form {
  display: grid;
  padding: 34px;
  border-radius: var(--radius);
  gap: 18px;
}

.contact-form label {
  display: grid;
  color: #d4d0c7;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(214, 168, 79, 0.17);
  border-radius: 10px;
  outline: none;
  background: rgba(0, 0, 0, 0.32);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input,
.contact-form select {
  height: 49px;
  padding: 0 14px;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
  padding: 14px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214, 168, 79, 0.08);
}

.contact-form option {
  background: #111;
}

.form-notice {
  color: #77736b;
  font-size: 0.72rem;
}

.form-notice.success {
  color: var(--gold-light);
}

.contact-info {
  display: grid;
  margin-top: 35px;
  gap: 18px;
}

.contact-info div {
  padding-left: 18px;
  border-left: 1px solid var(--border);
}

.contact-info span,
.contact-info strong {
  display: block;
}

.contact-info span {
  color: #74716a;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.contact-info strong {
  margin-top: 5px;
  color: var(--gold-light);
}

.site-footer {
  padding: 38px 0;
  border-top: 1px solid var(--border);
  background: #050505;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.footer-content p,
.footer-links {
  color: #77736b;
  font-size: 0.75rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 80px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(10, 10, 10, 0.98);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 8px 0;
  }

  .nav-contact {
    text-align: center;
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 55px;
  }

  .system-panel {
    max-width: 650px;
    transform: none;
  }

  .software-list {
    grid-template-columns: 1fr;
  }

  .software-card {
    min-height: auto;
  }

  .about-grid,
  .contact-grid {
    gap: 55px;
  }
}

@media (max-width: 650px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 80px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 125px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 14vw, 3.6rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-highlights,
  .card-grid,
  .about-stats {
    grid-template-columns: 1fr;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-number {
    display: none;
  }

  .service-card,
  .software-card,
  .contact-form {
    padding: 25px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}


.website-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-notice.error {
  color: #ff9a9a;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}
