﻿/*
 * © 2026 Jaisal E. K. All Rights Reserved.
 */

@font-face {
  font-family: 'Switzer';
  src: url('../fonts/Switzer-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Switzer';
  src: url('../fonts/Switzer-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Switzer';
  src: url('../fonts/Switzer-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Switzer';
  src: url('../fonts/Switzer-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Literata';
  src: url('../fonts/Literata-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Literata';
  src: url('../fonts/Literata-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Literata';
  src: url('../fonts/Literata-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Literata';
  src: url('../fonts/Literata-SemiBoldItalic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Literata';
  src: url('../fonts/Literata-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Literata';
  src: url('../fonts/Literata-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/JetBrainsMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --background-color: #f5f3ef;
  --text-color: #141414;
  --accent-color: #66023c;
  --complementary-color: #1f4e3d;
  --card-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.07);
  --card-shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.1), 0 16px 36px rgba(0, 0, 0, 0.1);
  --border-radius: 10px;
  --title-font: "Switzer", sans-serif;
  --body-font: "Literata", serif;
  --mono-font: "JetBrains Mono", monospace;
}

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

::selection {
  background-color: #fbd714;
  color: #141414;
  text-shadow: none;
}

::-moz-selection {
  background-color: #fbd714;
  color: #141414;
  text-shadow: none;
}

body {
  font-family: var(--body-font);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--title-font);
}

a {
  text-decoration: none;
  color: var(--accent-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--complementary-color);
}

p code, li code {
  font-family: var(--mono-font);
  background-color: rgba(102, 2, 60, 0.08);
  color: var(--accent-color);
  padding: 2px 6px;
  border-radius: var(--border-radius);
  font-size: 0.85em;
  font-weight: 500;
}

.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.icon-text {
  filter: brightness(0) invert(8%);
}

.icon-accent {
  filter: brightness(0) saturate(100%) invert(10%) sepia(31%) saturate(7479%) hue-rotate(309deg) brightness(98%) contrast(108%);
}

.icon-white {
  filter: brightness(0) invert(1);
}

.nav-link:hover .icon,
.btn-secondary:hover .icon,
.close-modal:hover .icon {
  filter: brightness(0) saturate(100%) invert(24%) sepia(18%) saturate(1914%) hue-rotate(112deg) brightness(97%) contrast(92%);
}

.btn-primary:hover .icon-white {
  filter: brightness(0) invert(1);
}

.nav-link .icon,
.btn .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.feature-icon .icon {
  width: 2rem;
  height: 2rem;
}

.close-modal .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

.site-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background-color: var(--background-color);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
  animation: blob-float 22s infinite alternate ease-in-out;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: #C48B9F;
  top: -150px;
  left: -150px;
}

.blob-2 {
  width: 600px;
  height: 600px;
  background: #E8B4B8;
  bottom: -180px;
  right: -150px;
  animation-delay: -11s;
  animation-direction: alternate-reverse;
}

.texture-overlay {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(102, 2, 60, 0.03) 10px,
    rgba(102, 2, 60, 0.03) 11px
  );
  opacity: 0.8;
}

@keyframes blob-float {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(50px, 30px) scale(1.08); }
  100% { transform: translate(-30px, 50px) scale(0.93); }
}

@keyframes logo-float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 32px;
}

.header .nav-left,
.header .nav-right {
  display: flex;
  gap: 20px;
}

.nav-link {
  color: var(--text-color);
  font-family: var(--title-font);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--complementary-color);
}

.hero {
  text-align: center;
  padding-bottom: 60px;
}

.hero-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px 0 80px 0;
}

.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.hero-logo img {
  width: 160px;
  height: 160px;
  animation: logo-float 4s ease-in-out infinite;
  will-change: transform;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  color: var(--text-color);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero .subtitle {
  font-family: var(--title-font);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--accent-color);
  margin-bottom: 24px;
}

.hero .description {
  font-family: var(--body-font);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 650px;
  margin: 0 auto 32px auto;
  color: var(--text-color);
}

.cta-top {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.download-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.version-text {
  font-family: var(--title-font);
  font-size: 0.85rem;
  color: var(--text-color);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-family: var(--title-font);
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--complementary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31, 78, 61, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
  border-color: var(--complementary-color);
  color: var(--complementary-color);
  background-color: rgba(31, 78, 61, 0.05);
}

.cta-bottom {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 20px;
}

.feature-card {
  background-color: rgba(245, 243, 239, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom-color: rgba(200, 195, 188, 0.35);
  border-right-color: rgba(200, 195, 188, 0.35);
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card.col-1 {
  grid-column: span 1;
}

.feature-card.col-3 {
  grid-column: span 3;
}

.feature-card-wide {
  flex-direction: row;
  align-items: center;
}

.feature-card-body {
  flex: 1;
}

.feature-icon {
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-color);
}

.feature-card p {
  font-family: var(--body-font);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 24px;
}

.feature-card p a {
  font-weight: 500;
}

.fine-print {
  text-align: center;
  font-size: 0.85rem;
  color: #6a6a6a;
  margin-top: 20px;
  margin-bottom: 40px;
}

.fine-print a {
  color: #6a6a6a;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.fine-print a:hover {
  color: var(--accent-color);
}

footer {
  font-family: var(--title-font);
  text-align: center;
  padding: 32px 0;
  border-top: 1px solid rgba(102, 2, 60, 0.15);
  font-size: 0.8rem;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer p {
  margin: 0;
  line-height: 1.1;
  color: var(--text-color);
}

footer a {
  color: var(--accent-color);
  font-weight: 400;
  transition: color 0.3s ease;
  line-height: 1.1;
}

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--accent-color);
  color: var(--background-color);
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease,
    box-shadow 0.3s ease;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  padding: 0;
}

.scroll-to-top::before {
  content: "\25B2";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 10px;
  line-height: 1;
  transform: translateY(0px) scaleX(1.25);
  font-weight: normal;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  background: var(--background-color);
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 32px;
  border-bottom: 1px solid rgba(102, 2, 60, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.4);
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--accent-color);
}

.close-modal {
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  transform: scale(1.1);
}

.modal-body {
  padding: 0;
  overflow: hidden;
}

.modal-body pre {
  padding: 32px;
  font-family: var(--mono-font);
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre;
  color: var(--text-color);
  margin: 0;
  overflow: auto;
  max-height: 60vh;
}

@media (hover: hover) {
  .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
  }

  .scroll-to-top:hover {
    background-color: var(--complementary-color);
    transform: translateY(-1px);
  }

  footer a:hover {
    color: var(--complementary-color);
  }
}

@media (hover: none) {
  .scroll-to-top:active {
    background-color: var(--complementary-color);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
  }

  footer a:active {
    color: var(--complementary-color);
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .header {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
  .header .nav-left,
  .header .nav-right {
    gap: 12px;
  }
  .hero-intro {
    min-height: calc(100vh - 75px);
    min-height: calc(100svh - 75px);
    padding: 20px 0 40px 0;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-logo img {
    width: 112px;
    height: 112px;
  }
  .feature-grid {
    display: flex;
    flex-direction: column;
  }
  .feature-card.col-1,
  .feature-card.col-3 {
    grid-column: span 1;
  }
  .feature-card-wide {
    flex-direction: column;
    align-items: flex-start;
  }
  .feature-card-wide .feature-card-body {
    padding-right: 0;
  }
  .modal-body pre {
    padding: 20px;
    max-height: 70vh;
  }
  footer {
    padding: 20px 0;
    min-height: 60px;
  }
  footer p {
    font-size: 0.6rem;
  }
  .scroll-to-top {
    display: none !important;
  }
}

@media (min-width: 1200px) {
  .container {
    padding-left: 60px;
    padding-right: 60px;
  }
}

@media (orientation: landscape) and (min-width: 768px) {
  .hero-intro {
    min-height: calc(100vh - 160px);
    min-height: calc(100svh - 160px);
    padding-bottom: 8vh;
  }
}