/* Analogix Pro Landing Page Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- Cascade Layers --- */
@layer reset, base, theme, layout, components, utilities;

@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
  }

  body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.6;
  }

  img {
    max-width: 100%;
    display: block;
    height: auto;
  }

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

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

@layer theme {
  :root {
    color-scheme: dark;
    
    /* Design Tokens */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-accent: 'Orbitron', monospace;

    /* Colors */
    --bg-dark: #070709;
    --bg-deep: #0e0e12;
    --bg-panel: rgba(22, 22, 29, 0.65);
    --bg-panel-hover: rgba(29, 29, 38, 0.75);
    
    --accent: #ff6f00;
    --accent-light: #ff9d42;
    --accent-dark: #cc5900;
    --accent-glow: rgba(255, 111, 0, 0.25);
    --accent-glow-strong: rgba(255, 111, 0, 0.45);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.16);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px var(--accent-glow);
  }
}

@layer base {
  body {
    background-color: var(--bg-dark);
    background-image: 
      radial-gradient(circle at 10% 20%, rgba(255, 111, 0, 0.08) 0%, transparent 40%),
      radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
      radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 0%, var(--bg-dark) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 16px;
    overflow-x: hidden;
  }

  h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #ffffff;
  }

  h1 {
    font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
    text-wrap: balance;
  }

  h2 {
    font-size: clamp(2rem, 1.2rem + 3vw, 3rem);
    text-wrap: balance;
  }

  h3 {
    font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  }

  p {
    color: var(--text-secondary);
    font-weight: 300;
    text-wrap: pretty;
  }

  /* Custom Focus Outline */
  :focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 4px;
  }
}

@layer layout {
  .container {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    padding-inline: 60px;
  }

  .section {
    padding-block: clamp(4rem, 2rem + 6vh, 8rem);
    position: relative;
  }

  .grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
  }
  
  .grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
  }
}

@layer components {
  /* --- Header / Navbar --- */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: transparent;
    z-index: 100;
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
  }

  .navbar.scrolled {
    background: rgba(7, 7, 9, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .navbar .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
  }

  .logo {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: #ffffff;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    justify-self: start;
  }

  .logo span {
    color: #ff7a45;
    font-weight: 600;
    margin-left: 4px;
  }

  .logo-wave {
    margin-right: 10px;
    flex-shrink: 0;
  }

  .nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
    margin: 0;
    padding: 0;
  }

  .nav-link {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.25s ease;
    cursor: pointer;
    text-transform: capitalize;
  }

  .nav-link:hover {
    color: #ffffff;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: end;
  }

  .btn-nav-outline {
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
    transition: border-color 0.2s, background-color 0.2s;
    cursor: pointer;
    text-decoration: none;
  }

  .btn-nav-outline:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
  }

  .btn-nav-solid {
    padding: 6px 16px;
    background: linear-gradient(135deg, #ff7a45 0%, #ff5e62 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    transition: opacity 0.2s, transform 0.2s;
    cursor: pointer;
    border: none;
    text-decoration: none;
  }

  .btn-nav-solid:hover {
    opacity: 0.9;
    transform: translateY(-1px);
  }

  /* --- Buttons --- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
  }

  .btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #000000;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(255, 111, 0, 0.25);
  }

  .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.4);
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  }

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

  .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-color-hover);
    transform: translateY(-3px);
  }

  /* --- Glass Panel --- */
  .glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: border-color 0.3s ease, background-color 0.3s ease;
  }

  .glass-panel:hover {
    border-color: var(--border-color-hover);
    background: var(--bg-panel-hover);
  }

  /* --- Hero Section --- */
  .hero {
    background-image: url('images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .hero-badge-small {
    font-size: 2rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
  }

  .hero-left .hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(5.5rem, 3.5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
    text-align: left;
  }

  @media (min-width: 2100px) {
    .hero-left .hero-title {
      font-size: clamp(7rem, 3.5vw, 3.5rem);
    }
  }

  .text-blue {
    color: #38bdf8;
  }

  .hero-left .hero-desc {
    text-align: left;
    margin-bottom: 32px;
    max-width: 90%;
    color: #cbd5e1;
    font-size: 2.1rem;
    line-height: 1.5;
  }

  @media (min-width: 2000px) {
    .hero-left .hero-desc {
      font-size: 2.5rem;
    }
  }

  .hero-left .hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
  }

  .btn-outline-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
  }

  .btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
  }

  .hero-mini-features {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
  }

  .mini-feature-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 100px;
    transition: border-color 0.3s;
  }

  .mini-feature-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
  }

  .mf-icon {
    color: #38bdf8;
    margin-bottom: 12px;
  }

  .mf-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
  }

  .mf-desc {
    font-size: 0.65rem;
    color: #94a3b8;
  }

  .hero-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-monitor-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  }

  /* Ambient Glow effect under hero preview */
  .hero-right::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 50, 0, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    opacity: 0.7;
    filter: blur(40px);
  }

  /* --- Features Section --- */
  .section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
  }

  .section-subtitle {
    font-family: var(--font-accent);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
  }

  .section-title {
    margin-bottom: 16px;
  }

  .feature-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .feature-icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(255, 111, 0, 0.1);
    border: 1px solid rgba(255, 111, 0, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .feature-card h3 {
    font-weight: 600;
  }

  /* --- Designs Showroom Listing Style --- */
  .showroom-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: 100%;
  }

  .showroom-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    text-align: left;
  }

  .showroom-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
  }

  .showroom-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    font-family: var(--font-primary);
  }

  .showroom-item-settings {
    font-size: 0.8rem;
    color: #3b82f6;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 500;
  }

  .showroom-item-settings:hover {
    text-decoration: underline;
  }

  .showroom-player-wrapper {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    background: transparent;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }

  .showroom-player-wrapper:hover {
  }

  .showroom-player-wrapper img {
    width: 100%;
    height: auto;
    display: block;
  }

  .design-badge {
    display: none;
  }


  /* --- Pricing Section --- */
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    align-items: stretch;
    margin-top: 20px;
  }

  .pricing-card {
    position: relative;
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    z-index: 1;
  }

  /* Popular pricing card highlighted */
  .pricing-card.popular {
    border-color: rgba(255, 111, 0, 0.4);
    background: rgba(255, 111, 0, 0.03);
    background-image: 
      radial-gradient(circle at 50% 0%, rgba(255, 111, 0, 0.15) 0%, transparent 60%);
  }

  .pricing-card.popular::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #000000;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(255, 111, 0, 0.3);
  }

  .pricing-header {
    margin-bottom: 28px;
  }

  .pricing-tier {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
  }

  .pricing-card.popular .pricing-tier {
    color: var(--accent-light);
  }

  .pricing-price {
    font-family: var(--font-accent);
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    margin-block: 16px;
    display: flex;
    align-items: baseline;
  }

  .pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: 4px;
  }

  .pricing-price::before {
    content: '$';
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    align-self: flex-start;
    margin-top: 6px;
    margin-right: 2px;
  }

  .pricing-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
  }

  .pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-block: 32px;
  }

  .pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-primary);
  }

  .pricing-features li svg {
    color: var(--accent);
    flex-shrink: 0;
  }

  .pricing-features li.disabled {
    color: var(--text-muted);
  }

  .pricing-features li.disabled svg {
    color: var(--text-muted);
  }

  .pricing-button {
    width: 100%;
    margin-top: auto;
  }

  /* --- FAQ Section --- */
  .faq-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .faq-item {
    border-radius: var(--radius-md);
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .faq-item[open] {
    border-color: rgba(255, 111, 0, 0.25);
    background: rgba(255, 111, 0, 0.02);
  }

  .faq-item summary {
    padding: 24px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    min-block-size: 24px;
  }

  /* Remove default arrow in Webkit */
  .faq-item summary::-webkit-details-marker {
    display: none;
  }

  .faq-icon {
    width: 24px;
    height: 24px;
    position: relative;
    transition: transform 0.3s ease;
  }

  .faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--text-secondary);
    transition: background-color 0.3s ease;
  }

  /* Horizontal line */
  .faq-icon::before {
    top: 11px;
    left: 4px;
    width: 16px;
    height: 2px;
  }

  /* Vertical line */
  .faq-icon::after {
    top: 4px;
    left: 11px;
    width: 2px;
    height: 16px;
    transition: transform 0.3s ease;
  }

  .faq-item[open] .faq-icon {
    transform: rotate(45deg);
  }

  .faq-item[open] .faq-icon::before,
  .faq-item[open] .faq-icon::after {
    background-color: var(--accent);
  }

  .faq-content {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.98rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    animation: fade-slide-down 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes fade-slide-down {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* --- Footer --- */
  .footer {
    border-top: 1px solid var(--border-color);
    padding-block: 40px;
    background: #040406;
    color: var(--text-muted);
    font-size: 0.9rem;
  }

  .footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }

  .footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
  }

  .footer-link {
    color: var(--text-secondary);
    transition: color 0.25s ease;
  }

  .footer-link:hover {
    color: var(--accent-light);
  }
}

@layer utilities {
  .text-center { text-align: center; }
  
  .mt-4 { margin-top: 16px; }
  .mb-4 { margin-bottom: 16px; }
  
  /* SVG Icons utility */
  .icon-inline {
    display: inline-block;
    width: 1.25em;
    height: 1.25em;
    vertical-align: middle;
  }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* In a full page we would make a burger menu, but for now we simplify for clean landing presentation */
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    padding-inline: 20px;
  }

  .navbar {
    height: 70px;
  }

  .section {
    padding-block: 4rem;
  }
}
