/* LinkrAPI Professional Light Theme Styles */
:root {
  --primary-white: #FFFFFF;
  --primary-black: #0A0A0A;
  --accent-slate: #64748B;
  --neutral-light: #E2E8F0;
  --neutral-dark: #1E293B;

  --bg-main: var(--primary-white);
  --bg-alt: #F8FAFC;
  --bg-card: var(--primary-white);
  --bg-card-hover: #F1F5F9;
  --border-light: var(--neutral-light);
  --border-highlight: var(--accent-slate);

  --text-main: var(--primary-black);
  --text-muted: var(--accent-slate);
  --text-dim: var(--accent-slate);

  --primary: var(--primary-black);
  --primary-text: var(--primary-white);
  --primary-hover: var(--neutral-dark);
  --secondary: var(--neutral-dark);
  --accent: var(--primary-black);
  --danger: #ef4444;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1.5rem;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.max-w-md {
  max-width: 768px;
  margin-inline: auto;
}

.max-w-lg {
  max-width: 900px;
  margin-inline: auto;
}

.section {
  padding: 6rem 0;
}

.alt-bg {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.border-bottom {
  border-bottom: 1px solid var(--border-light);
}

.border-top {
  border-top: 1px solid var(--border-light);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-dim {
  color: var(--text-dim) !important;
}

/* Utilities */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.align-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.pt-4 {
  padding-top: 1rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

.pt-8 {
  padding-top: 2rem;
}

.pb-12 {
  padding-bottom: 3rem;
}

.pt-24 {
  padding-top: 8rem;
}

.pb-24 {
  padding-bottom: 8rem;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 3rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.5rem;
}

/* Buttons & Links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-text);
  box-shadow: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--primary-hover);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background: var(--bg-alt);
  border-color: var(--border-highlight);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Clean Panel */
.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-mark.sm {
  width: 24px;
  height: 24px;
  font-size: 0.85rem;
  border-radius: 6px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-direction: column;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 0;
}

/* Base Styles */
.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-inline: auto;
}

.text-gradient {
  color: var(--text-main);
}

.icon-primary {
  color: var(--primary);
  width: 24px;
  height: 24px;
}

.icon-green {
  color: var(--accent);
  width: 20px;
  height: 20px;
}

.icon-dim {
  color: var(--text-dim);
  width: 20px;
  height: 20px;
}

.icon-lg {
  width: 40px;
  height: 40px;
}

/* Hero */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  display: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-container {
    grid-template-columns: 1.1fr 0.9fr;
    text-align: left;
  }

  .hero-container .btn-group {
    justify-content: flex-start;
  }

  .hero-container .trust-bullets {
    justify-content: flex-start;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  position: relative;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.trust-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.trust-bullets li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Code Window */
.code-window {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
  position: relative;
  text-align: left;
}

.code-window::before {
  display: none;
}

.code-header {
  background: var(--neutral-dark);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.window-controls {
  display: flex;
  gap: 0.4rem;
  margin-right: 1rem;
}

.window-controls .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red {
  background: #ef4444;
}

.dot.yellow {
  background: #f59e0b;
}

.dot.green {
  background: #10b981;
}

.code-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.code-body {
  background: var(--primary-black);
  padding: 1.5rem;
  overflow-x: auto;
  color: var(--primary-white);
}

pre {
  margin: 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
}

.token.keyword {
  color: #c678dd;
}

.token.function {
  color: #61afef;
}

.token.string {
  color: #98c379;
}

.token.class {
  color: #e5c07b;
}

.token.comment {
  color: #5c6370;
  font-style: italic;
}

.copy-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Problem Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  background: var(--bg-card-hover);
}

.icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.icon-box.red-icon {
  background: var(--bg-alt);
  color: var(--text-main);
}

.icon-box svg {
  width: 20px;
  height: 20px;
}

.card-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.bridge-banner {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 12px;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  position: relative;
}

.step-card {
  position: relative;
  z-index: 2;
}

.step-number {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.step-card:hover .step-number {
  border-color: var(--border-highlight);
  background: var(--bg-alt);
  transform: scale(1.05);
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.step-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* API Flow Section */
.api-flow-section {
  overflow: hidden;
}

.api-flow-panel {
  padding: 3rem;
  position: relative;
}

.api-flow-bg-glow {
  display: none;
}

.api-flow-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.flow-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
}

.step-icon.purple-icon,
.step-icon.indigo-icon,
.step-icon.green-icon {
  background: var(--bg-alt);
  color: var(--text-main);
  border-color: var(--border-light);
}

.step-content h4 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.step-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.code-sm {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  color: #a5b4fc;
}

.flow-line {
  width: 2px;
  height: 24px;
  background: var(--border-light);
  margin-left: 19px;
  margin-top: -1.5rem;
  margin-bottom: -1.5rem;
}

/* Security List */
.security-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.security-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.icon-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.icon-circle.green {
  background: var(--bg-alt);
  color: var(--text-main);
}

.list-content strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.05rem;
}

.list-content span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.privacy-badge {
  padding: 3rem 2rem;
  border-radius: 24px;
  max-width: 320px;
  margin: 0 auto;
}

.shield-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.pricing-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.pricing-card.highlighted {
  border-color: var(--primary);
  position: relative;
}

.pricing-card.highlighted::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  border-radius: 16px 16px 0 0;
}

.plan-name {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.plan-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.price .currency {
  font-size: 1.5rem;
  font-weight: 600;
  vertical-align: super;
}

.price .amount {
  font-size: 3.5rem;
  font-weight: 800;
}

.price .period {
  color: var(--text-muted);
  font-weight: 500;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

/* FAQ */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: rgba(255, 255, 255, 0.15);
  background: var(--bg-card-hover);
}

.faq-btn {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
}

.chevron {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.faq-item.active .chevron {
  transform: rotate(180deg);
  color: var(--text-main);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-content p {
  padding: 0 1.5rem 1.25rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Final CTA */
.final-cta {
  padding: 8rem 0;
  position: relative;
  border-top: 1px solid var(--border-light);
}

.cta-bg-glow {
  display: none;
}

.cta-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 3rem 0;
  background: var(--bg-alt);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: white;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-dim);
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

/* Mobile Hiding */
@media (max-width: 991px) {
  .hidden-mobile {
    display: none !important;
  }

  .mobile-menu-btn {
    display: block;
  }
}

@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Dark Mode Override */
[data-theme=dark] {
  --bg-main: var(--primary-black);
  --bg-alt: #111111;
  --bg-card: #1A1A1A;
  --bg-card-hover: #222222;
  --border-light: #333333;
  --border-highlight: var(--accent-slate);

  --text-main: var(--primary-white);
  --text-muted: #A0A0A0;
  --text-dim: #777777;

  --primary: var(--primary-white);
  --primary-text: var(--primary-black);
  --primary-hover: #E0E0E0;
  --secondary: #CCCCCC;
  --accent: var(--primary-white);
}