/* Toolslead – Wow UI */
:root {
  --bg: #050508;
  --bg-elevated: #0c0c12;
  --bg-card: rgba(18, 18, 28, 0.6);
  --text: #f0f1f4;
  --text-muted: #8b8f9a;
  --border: rgba(255, 255, 255, 0.06);
  --radius: 16px;
  --radius-lg: 24px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Syne", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  /* Theme: Lightseagreen */
  --theme: #20b2aa;
  --theme-light: #2dd4c8;
  --theme-dark: #1a9d96;
  /* Gradients */
  --gradient-1: linear-gradient(135deg, #1a9d96 0%, #20b2aa 50%, #2dd4c8 100%);
  --gradient-2: linear-gradient(135deg, #2dd4c8 0%, #20b2aa 100%);
  --gradient-3: linear-gradient(135deg, #5eead4 0%, #1a9d96 100%);
  --gradient-glow: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(32, 178, 170, 0.35), transparent);
  --gradient-hero: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(32, 178, 170, 0.15), transparent 50%),
                   radial-gradient(ellipse 80% 60% at 80% 20%, rgba(45, 212, 200, 0.12), transparent 45%),
                   radial-gradient(ellipse 60% 50% at 20% 40%, rgba(26, 157, 150, 0.1), transparent 40%);
  --shadow-glow: 0 0 60px -12px rgba(32, 178, 170, 0.4);
  --shadow-card: 0 4px 24px -4px rgba(0, 0, 0, 0.4);
}

/* Light theme overrides */
[data-theme="light"] {
  --bg: #f7f7fb;
  --bg-elevated: #ffffff;
  --bg-card: rgba(0, 0, 0, 0.04);
  --text: #0b1020;
  --text-muted: #555a6a;
  --border: rgba(0, 0, 0, 0.08);
  /* keep gradients and shadows pleasant on light bg */
  --shadow-glow: 0 0 60px -12px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 24px -4px rgba(0, 0, 0, 0.08);
}

/* Optional header background tweak for light theme */
[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 8, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo:hover {
  filter: brightness(1.15);
  opacity: 1;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav a.active {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 0 auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.theme-toggle {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle::before {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
}

.nav-toggle::after {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
}

.nav-toggle span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 2px;
  background: var(--text);
}

.nav-toggle[aria-expanded="true"]::before {
  transform: translateX(-50%) translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  transform: translateX(-50%) translateY(-6px) rotate(-45deg);
}

.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
}

@media (max-width: 700px) {
  .nav {
    position: fixed;
    top: 57px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.5rem;
    background: rgba(12, 12, 18, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: none;
  }

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

  .nav-toggle {
    display: block;
  }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: 6rem 0 8rem;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 18s ease-in-out infinite;
  pointer-events: none;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(32, 178, 170, 0.25);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(45, 212, 200, 0.2);
  top: 20%;
  right: 10%;
  animation-delay: -6s;
}

.hero-orb-3 {
  width: 250px;
  height: 250px;
  background: rgba(26, 157, 150, 0.2);
  bottom: 10%;
  left: 15%;
  animation-delay: -12s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.02);
  animation: fadeUp 0.8s ease-out;
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-2);
  box-shadow: 0 0 12px rgba(32, 178, 170, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 1.5rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp 0.8s ease-out 0.1s both;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  animation: fadeUp 0.8s ease-out 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease-out 0.3s both;
}

/* Hero on small screens: ensure name is visible and fits */
@media (max-width: 600px) {
  .hero {
    padding: 4rem 0 5rem;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.5rem);
    margin-bottom: 1.25rem;
  }

  .hero-tagline {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--gradient-1);
  color: #fff;
  border: none;
  box-shadow: 0 4px 24px -4px rgba(32, 178, 170, 0.5);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 32px -4px rgba(32, 178, 170, 0.5);
  transform: translateY(-2px);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
}

/* ----- Sections ----- */
section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.section-intro {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0 0 3rem;
  max-width: 560px;
}

/* ----- App cards ----- */
.apps-overview {
  padding: 5rem 0;
  position: relative;
}

.apps-overview .container {
  position: relative;
}

.apps-overview h2,
.apps-overview .section-intro {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.apps-overview h2.reveal,
.apps-overview .section-intro.reveal {
  opacity: 1;
  transform: translateY(0);
}

.app-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .app-cards {
    grid-template-columns: 1fr;
  }
}

.app-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.4s ease, border-color 0.3s ease, box-shadow 0.4s ease;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease, box-shadow 0.4s ease;
}

.app-card.reveal {
  opacity: 1;
  transform: translateY(0);
}

.app-card:nth-child(1) { transition-delay: 0.1s; }
.app-card:nth-child(2) { transition-delay: 0.2s; }
.app-card:nth-child(3) { transition-delay: 0.3s; }

.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(32, 178, 170, 0.3), rgba(45, 212, 200, 0.2), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.app-card:hover {
  transform: translateY(-8px);
  border-color: rgba(32, 178, 170, 0.25);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.5), 0 0 40px -12px rgba(32, 178, 170, 0.15);
}

.app-card:hover::before {
  opacity: 1;
}

.app-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(32, 178, 170, 0.2), rgba(45, 212, 200, 0.15));
  border: 1px solid rgba(32, 178, 170, 0.2);
}

.app-card:nth-child(2) .app-card-icon {
  background: linear-gradient(135deg, rgba(45, 212, 200, 0.2), rgba(32, 178, 170, 0.15));
  border-color: rgba(45, 212, 200, 0.2);
}

.app-card:nth-child(3) .app-card-icon {
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.2), rgba(26, 157, 150, 0.15));
  border-color: rgba(94, 234, 212, 0.2);
}

.app-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
}

.app-card h3 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.app-card h3 a:hover {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-card p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--theme);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s ease, color 0.2s ease;
}

.card-link:hover {
  gap: 0.6rem;
  color: var(--theme-light);
}

/* ----- About ----- */
.about {
  padding: 5rem 0;
  background: var(--bg-elevated);
  position: relative;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  opacity: 0.5;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.features li {
  padding: 1rem 1.25rem;
  padding-left: 3rem;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.features li:hover {
  border-color: rgba(32, 178, 170, 0.2);
  background: rgba(32, 178, 170, 0.03);
}

.features li::before {
  content: "✓";
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--theme);
  font-weight: 700;
  font-size: 1.1rem;
}

.about-apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-app {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.about-app:hover {
  border-color: rgba(32, 178, 170, 0.2);
  background: rgba(32, 178, 170, 0.03);
}

.about-app h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.about-app-benefit {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 1rem;
}

.about-app-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-app-features li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.about-app-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--theme);
  transform: none;
}

/* ----- Contact ----- */
.contact {
  padding: 5rem 0;
  position: relative;
}

.contact-email {
  font-size: 1.25rem;
  font-weight: 600;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: filter 0.2s ease;
}

.contact-email:hover {
  filter: brightness(1.2);
}

/* ----- Footer ----- */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--bg-elevated);
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 0 0.25rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* ----- Page hero (inner pages) ----- */
.page-hero {
  position: relative;
  padding: 4rem 0 3rem;
  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease, gap 0.2s ease;
}

.page-hero .back-link:hover {
  color: var(--theme);
  gap: 0.5rem;
}

.page-hero .hero-badge {
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin: 0;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ----- Apps list (apps.html) ----- */
.apps-list {
  padding: 0 0 5rem;
}

.app-detail {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.app-detail.reveal {
  opacity: 1;
  transform: translateY(0);
}

.app-detail:last-of-type {
  border-bottom: none;
}

.app-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--theme);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 0.5rem;
}

/* App status badge (e.g. In progress) */
.app-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.app-status-badge--in-progress {
  color: #d4a853;
  background: rgba(212, 168, 83, 0.12);
  border: 1px solid rgba(212, 168, 83, 0.35);
}

.app-status-badge--in-progress::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d4a853;
  animation: pulse 2s ease-in-out infinite;
}

.app-card .app-status-badge {
  display: inline-block;
  margin-bottom: 0.6rem;
}

[data-theme="light"] .app-status-badge--in-progress {
  color: #b8860b;
  background: rgba(184, 134, 11, 0.12);
  border-color: rgba(184, 134, 11, 0.4);
}

[data-theme="light"] .app-status-badge--in-progress::before {
  background: #b8860b;
}

.app-detail h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 1rem;
}

.app-detail h2 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.app-detail h2 a:hover {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-detail-content p {
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.7;
}

.app-detail-content ul {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.app-detail-content li {
  margin-bottom: 0.4rem;
}

.cta-section {
  padding: 4rem 0;
  background: var(--bg-elevated);
  text-align: center;
  position: relative;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  opacity: 0.5;
}

.cta-section p {
  margin: 0 0 1.25rem;
  font-size: 1.2rem;
  color: var(--text-muted);
}

/* ----- App subpages ----- */
.app-page .page-hero {
  padding: 3rem 0 2.5rem;
}

.app-page .app-content {
  padding: 0 0 5rem;
}

.app-page .app-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.app-page .app-content ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.app-page .app-content p {
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.7;
}

.app-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.app-page .back-link:hover {
  color: var(--theme);
}

/* ----- Grid background (optional subtle) ----- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
}

/* ----- App modal (fancy) ----- */
.app-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.app-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.app-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

[data-theme="light"] .app-modal-backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.app-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card), 0 24px 80px rgba(0, 0, 0, 0.5);
  padding: 2rem;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.app-modal.is-open .app-modal-dialog {
  transform: scale(1);
}

.app-modal-dialog::-webkit-scrollbar {
  display: none;
}

.app-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.app-modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.app-modal-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 2.5rem 1.25rem 0;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Carousel */
.app-modal-carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.app-modal-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.app-modal-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.app-modal-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.app-modal-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-modal-slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  background: linear-gradient(135deg, rgba(26, 157, 150, 0.15), rgba(45, 212, 200, 0.08));
}

.app-modal-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.app-modal-carousel-btn:hover {
  background: var(--theme);
  color: #fff;
  border-color: var(--theme);
}

.app-modal-prev {
  left: 0.75rem;
}

.app-modal-next {
  right: 0.75rem;
}

.app-modal-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.75rem;
}

.app-modal-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.app-modal-dots button:hover {
  background: var(--text-muted);
}

.app-modal-dots button.is-active {
  background: var(--theme);
  transform: scale(1.2);
}

.app-modal-features-wrap {
  margin-bottom: 1.5rem;
}

.app-modal-features-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.app-modal-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.app-modal-features li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.app-modal-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--theme);
}

.app-modal-install {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

/* ----- Blog listing ----- */
.blog-list {
  padding: 2rem 0 4rem;
}

.blog-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.blog-card.reveal {
  opacity: 1;
  transform: translateY(0);
}

.blog-card article {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-card article::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(32, 178, 170, 0.25), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.blog-card article:hover {
  border-color: rgba(32, 178, 170, 0.25);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.4);
}

.blog-card article:hover::before {
  opacity: 1;
}

.blog-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.75rem;
  flex-shrink: 0;
}

.blog-card h2 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.blog-card h2 a:hover {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-card-excerpt {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 0 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card .card-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--theme);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s ease, color 0.2s ease;
  margin-top: auto;
  padding: 0.5rem 0;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

.blog-card .card-link:hover {
  gap: 0.6rem;
  color: var(--theme-light);
}

/* Blog listing: responsive */
@media (max-width: 900px) {
  .blog-cards {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
  }

  .blog-card article {
    padding: 1.25rem;
  }

  .blog-card h2 {
    font-size: 1.15rem;
  }

  .blog-card-excerpt {
    font-size: 0.9rem;
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 600px) {
  .blog-list {
    padding: 1.5rem 0 3rem;
  }

  .blog-list .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .blog-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 0 -0.25rem;
  }

  .blog-card article {
    padding: 1.25rem 1rem;
    border-radius: var(--radius);
  }

  .blog-card h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .blog-card-excerpt {
    font-size: 0.875rem;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    margin-bottom: 0.75rem;
  }

  .blog-card .card-link {
    font-size: 0.875rem;
    min-height: 48px;
    padding: 0.6rem 0;
  }
}

@media (max-width: 380px) {
  .blog-list .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .blog-cards {
    margin: 0;
  }

  .blog-card article {
    padding: 1rem 0.875rem;
  }

  .blog-card h2 {
    font-size: 1rem;
  }
}

/* Blog index: page hero responsive */
@media (max-width: 600px) {
  .blog-list ~ .cta-section .container,
  .page-hero .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .page-hero {
    padding: 3rem 0 2rem;
  }

  .page-hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .page-hero p {
    font-size: 1rem;
  }
}

.main-logo-dv{
    align-items: center;
    display: flex;
    gap: 4px;
}
