/* ========================================
   TABLIQO — Light Theme Design System
   ======================================== */

/* Note: Google Fonts are preconnected and loaded directly in index.html to prevent render-blocking waterfall */

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--color-accent);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  z-index: 99999;
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  top: 20px;
}

/* ---------- Design Tokens ---------- */
:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f8f7fc;
  --color-bg-muted: #f1eff9;
  --color-bg-card: #ffffff;

  --color-accent: #7c3aed;
  --color-accent-hover: #6d28d9;
  --color-accent-light: #ede9fe;
  --color-accent-soft: rgba(124, 58, 237, 0.08);
  --color-accent-glow: rgba(124, 58, 237, 0.12);
  --color-teal: #0d9488;
  --color-teal-light: #ccfbf1;

  --color-text: #1a1a2e;
  --color-text-secondary: #52525b;
  --color-text-muted: #a1a1aa;

  --color-border: #e4e4e7;
  --color-border-hover: rgba(124, 58, 237, 0.3);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
  --shadow-glow: 0 8px 30px rgba(124, 58, 237, 0.18);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { border: none; cursor: pointer; font-family: inherit; }

/* ---------- Layout ---------- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.28);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-soft);
  transform: translateY(-2px);
}

/* ---------- Section Helpers ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 7px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Decorative Blobs ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  contain: layout paint;
  will-change: transform;
}

.blob--purple {
  width: 420px;
  height: 420px;
  background: rgba(124, 58, 237, 0.08);
}

.blob--teal {
  width: 350px;
  height: 350px;
  background: rgba(13, 148, 136, 0.07);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all var(--transition-base);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
  padding: 12px 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 34px;
  width: auto;
  aspect-ratio: 500 / 167;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.nav__link:hover {
  color: var(--color-accent);
}

.nav__cta {
  padding: 10px 24px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-glow);
}

.nav__cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}

.nav__hamburger span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 150px 0 80px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  background: var(--color-accent-light);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 28px;
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero__badge-tag {
  background: var(--color-accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__email {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.hero__email a {
  color: var(--color-accent);
  font-weight: 600;
}

.hero__email a:hover {
  text-decoration: underline;
}

.hero__visual {
  position: relative;
  z-index: 2;
}

.hero__image {
  width: 100%;
  height: auto;
  aspect-ratio: 1376 / 768;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  transition: transform 0.5s ease;
}

.hero__image:hover {
  transform: scale(1.015);
}

.hero__float {
  position: absolute;
  padding: 12px 18px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  animation: float 5s ease-in-out infinite;
  z-index: 3;
}

.hero__float--1 {
  bottom: -16px;
  left: -20px;
}

.hero__float--2 {
  top: -16px;
  right: -16px;
  animation-delay: 1.5s;
}

.hero__float-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.hero__float-icon--green {
  background: var(--color-teal-light);
  color: var(--color-teal);
}

.hero__float-icon--purple {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.hero__float-value {
  font-size: 0.75rem;
  color: #10b981;
  font-weight: 600;
}

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

/* ============================================
   FEATURES
   ============================================ */
.features {
  padding: 100px 0;
  background: var(--color-bg-soft);
  position: relative;
  overflow: hidden;
}

.features__header {
  text-align: center;
  margin-bottom: 60px;
}

.features__header .section-desc {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

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

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-teal));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-hover);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  background: var(--color-accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  transition: transform var(--transition-base);
}

.feature-card:hover .feature-card__icon {
  transform: scale(1.1) rotate(-3deg);
}

.feature-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 650;
  margin-bottom: 10px;
}

.feature-card__desc {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* ============================================
   SHOWCASE (Product Highlight)
   ============================================ */
.showcase {
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}

.showcase__block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.showcase__content .section-desc {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 28px;
}

.showcase__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.showcase__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.showcase__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--color-teal-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--color-teal);
  font-weight: 700;
}

.showcase__image-wrapper {
  position: relative;
}

.showcase__image {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 896;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  transition: all 0.5s ease;
}

.showcase__image:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 64px rgba(0,0,0,0.12);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
  padding: 100px 0 120px;
}

.cta__card {
  text-align: center;
  padding: 72px 48px;
  background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-bg-muted) 100%);
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.cta__card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: rgba(124, 58, 237, 0.06);
  border-radius: 50%;
  filter: blur(60px);
}

.cta__card::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 250px;
  height: 250px;
  background: rgba(13, 148, 136, 0.06);
  border-radius: 50%;
  filter: blur(60px);
}

.cta__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.cta__subtitle {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta__email {
  margin-top: 24px;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  position: relative;
  z-index: 1;
}

.cta__email a {
  color: var(--color-accent);
  font-weight: 600;
}

.cta__email a:hover {
  text-decoration: underline;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 40px 0 28px;
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__logo {
  display: flex;
  align-items: center;
}

.footer__logo-img {
  height: 28px;
  width: auto;
  aspect-ratio: 500 / 167;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer__link {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-accent);
}

.footer__copy {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.35s; }
.reveal-d5 { transition-delay: 0.4s; }
.reveal-d6 { transition-delay: 0.45s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero__subtitle {
    max-width: 100%;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__email {
    justify-content: center;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase__block {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 20px 24px;
    gap: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .features {
    padding: 72px 0;
  }

  .showcase {
    padding: 72px 0;
  }

  .cta__card {
    padding: 48px 24px;
  }

  .hero__float {
    display: none;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

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

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cta__actions {
    flex-direction: column;
    align-items: stretch;
  }
}
