/* ============================================
   IONIKON HUB - Landing Page Styles
   ============================================ */

/* CSS Variables */
:root {
    --color-primary: #00D4AA;
    --color-primary-dark: #00B494;
    --color-secondary: #00B4D8;
    --color-accent: #0CF5A0;
    --color-bg-dark: #0a0a0a;
    --color-bg-darker: #050505;
    --color-bg-card: #111111;
    --color-bg-card-hover: #1a1a1a;
    --color-text: #ffffff;
    --color-text-muted: #888888;
    --color-text-light: #cccccc;
    --color-border: #222222;
    --color-border-light: #333333;
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(0, 212, 170, 0.15);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --container-max: 1200px;
    --navbar-height: 72px;
}

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

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

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #000;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

.btn-secondary:hover {
    background: var(--color-primary);
    color: #000;
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-border-light);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-text {
    background: transparent;
    color: var(--color-text-light);
    padding: 12px 16px;
}

.btn-text:hover {
    color: var(--color-primary);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
}

.logo-icon {
    width: 36px;
    height: 36px;
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-light);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-normal);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: calc(var(--navbar-height) + 60px);
    padding-bottom: 120px;
    overflow: hidden;
    background: var(--gradient-dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hex-grid {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%2300D4AA' fill-opacity='0.03'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: calc(100vh - var(--navbar-height) - 180px);
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-integrations {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-integrations span {
    font-size: 14px;
    color: var(--color-text-muted);
}

.integration-icons {
    display: flex;
    gap: 12px;
}

.integration-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    transition: all var(--transition-normal);
}

.integration-icon svg {
    width: 18px;
    height: 18px;
}

.integration-icon:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* Hero Visual - Hub Diagram */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hub-diagram {
    position: relative;
    width: 400px;
    height: 400px;
}

.hub-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    box-shadow: var(--shadow-glow);
    z-index: 10;
}

.hub-core svg {
    width: 50px;
    height: 50px;
}

.hub-center span {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 4px;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed var(--color-border-light);
    border-radius: 50%;
    animation: rotate 60s linear infinite;
}

.orbit-1 {
    width: 320px;
    height: 320px;
}

.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    margin: -35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transform: rotate(var(--angle)) translateX(160px) rotate(calc(-1 * var(--angle)));
    animation: counter-rotate 60s linear infinite;
    transition: all var(--transition-normal);
}

.orbit-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
    transform: rotate(var(--angle)) translateX(160px) rotate(calc(-1 * var(--angle))) scale(1.1);
}

.orbit-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.orbit-item span {
    font-size: 10px;
    font-weight: 600;
    color: var(--color-text-muted);
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes counter-rotate {
    from { transform: rotate(var(--angle)) translateX(160px) rotate(calc(-1 * var(--angle) + 0deg)); }
    to { transform: rotate(var(--angle)) translateX(160px) rotate(calc(-1 * var(--angle) - 360deg)); }
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
}

.hero-wave svg {
    width: 100%;
    height: 100%;
}

/* ============================================
   PLATFORM SECTION
   ============================================ */
.platform {
    padding: 100px 0;
    background: var(--color-bg-dark);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--color-text-muted);
}

.section-header.light h2 {
    color: var(--color-bg-dark);
}

.section-header.light p {
    color: #555;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.platform-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: all var(--transition-normal);
}

.platform-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.platform-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 170, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.platform-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.platform-card h3 {
    margin-bottom: 12px;
}

.platform-card p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    font-size: 15px;
}

.card-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
}

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

/* Code Preview */
.platform-visual {
    display: flex;
    justify-content: center;
}

.code-preview {
    width: 100%;
    max-width: 700px;
    background: #0d0d0d;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.code-preview.large {
    max-width: 900px;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #080808;
    border-bottom: 1px solid var(--color-border);
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27ca40; }

.code-title {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-left: auto;
}

.copy-btn {
    padding: 4px;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.copy-btn:hover {
    color: var(--color-primary);
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

.code-content {
    padding: 24px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.8;
    overflow-x: auto;
}

.code-comment { color: #6a737d; }
.code-keyword { color: #ff79c6; }
.code-function { color: #50fa7b; }
.code-string { color: #f1fa8c; }
.code-property { color: #8be9fd; }
.code-variable { color: #bd93f9; }
.code-boolean { color: #ff79c6; }

/* ============================================
   INTEGRATION SECTION
   ============================================ */
.integration-section {
    padding: 80px 0;
    background: var(--color-primary);
    position: relative;
    overflow: hidden;
}

.integration-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.calculator-card {
    text-align: center;
    position: relative;
}

/* ============================================
   CODE DEMO SECTION
   ============================================ */
.code-demo {
    padding: 100px 0;
    background: var(--color-bg-darker);
}

.demo-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.demo-tab {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
}

.demo-tab:hover {
    color: var(--color-text);
    border-color: var(--color-border-light);
}

.demo-tab.active {
    color: #000;
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.demo-code {
    display: flex;
    justify-content: center;
}

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

.hex-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at center, rgba(0, 212, 170, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 170, 0.1);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

.feature-card h3 {
    margin-bottom: 16px;
}

.feature-card > p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--color-text-light);
}

.feature-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.features-cta {
    text-align: center;
}

/* ============================================
   CONNECTED SECTION
   ============================================ */
.connected {
    padding: 100px 0;
    background: var(--color-bg-darker);
}

.connected-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

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

.connected-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.connected-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-text-muted);
}

.connected-item:hover .connected-icon {
    border-color: var(--color-primary);
}

.connected-item:hover .connected-icon svg {
    color: var(--color-primary);
}

.connected-item span {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* Radar Visual */
.connected-visual {
    display: flex;
    justify-content: center;
}

.radar-container {
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(0, 212, 170, 0.05) 0%, transparent 70%);
}

.radar-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 50%;
}

.radar-circle:nth-child(1) { width: 100px; height: 100px; }
.radar-circle:nth-child(2) { width: 200px; height: 200px; }
.radar-circle:nth-child(3) { width: 300px; height: 300px; }

.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), transparent);
    transform-origin: left center;
    animation: sweep 4s linear infinite;
}

@keyframes sweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.radar-dot {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.radar-dot:nth-child(5) { animation-delay: 0.3s; }
.radar-dot:nth-child(6) { animation-delay: 0.6s; }
.radar-dot:nth-child(7) { animation-delay: 0.9s; }
.radar-dot:nth-child(8) { animation-delay: 1.2s; }

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

/* ============================================
   STATS SECTION
   ============================================ */
.stats {
    padding: 100px 0;
    background: var(--color-bg-dark);
}

.stats-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.stats-header h2 {
    margin-bottom: 16px;
}

.stats-header p {
    color: var(--color-text-muted);
    font-size: 18px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 170, 0.1);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing {
    padding: 100px 0;
    background: var(--color-bg-darker);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color var(--transition-normal);
}

.toggle-label.active {
    color: var(--color-text);
}

.save-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #000;
    background: var(--color-primary);
    border-radius: 10px;
    margin-left: 4px;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 13px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.toggle-switch:hover {
    border-color: var(--color-primary);
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: var(--color-primary);
    border-radius: 50%;
    transition: transform var(--transition-normal);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(22px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all var(--transition-normal);
}

.pricing-card:hover {
    border-color: var(--color-border-light);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #000;
    background: var(--gradient-primary);
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
    margin-bottom: 24px;
}

.pricing-header h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.pricing-header p {
    font-size: 14px;
    color: var(--color-text-muted);
}

.pricing-price {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--color-border);
}

.price-currency {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text-muted);
    vertical-align: top;
}

.price-amount {
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    color: var(--color-text);
}

.price-amount.custom {
    font-size: 32px;
}

.price-period {
    font-size: 16px;
    color: var(--color-text-muted);
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

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

.pricing-features svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ============================================
   CUSTOMERS SECTION
   ============================================ */
.customers {
    padding: 80px 0;
    background: var(--color-bg-darker);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.customers h2 {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
}

.customers-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 32px;
    align-items: center;
}

.customer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity var(--transition-normal);
}

.customer-logo:hover {
    opacity: 1;
}

.customer-logo svg {
    width: 100%;
    max-width: 120px;
    height: 40px;
    color: var(--color-text-muted);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    padding: 120px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.05'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    color: #000;
    margin-bottom: 16px;
}

.cta-content p {
    color: rgba(0, 0, 0, 0.7);
    font-size: 18px;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.cta .btn-primary {
    background: #000;
    color: var(--color-text);
}

.cta .btn-primary:hover {
    background: #111;
}

.cta .btn-outline {
    border-color: rgba(0, 0, 0, 0.3);
    color: #000;
}

.cta .btn-outline:hover {
    border-color: #000;
    background: rgba(0, 0, 0, 0.1);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 80px 0 40px;
    background: var(--color-bg-darker);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand > p {
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    transition: all var(--transition-normal);
}

.social-links a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.social-links svg {
    width: 18px;
    height: 18px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 20px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    font-size: 14px;
    color: var(--color-text-muted);
}

.footer-column a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-legal span {
    font-size: 13px;
    color: var(--color-text-muted);
}

.legal-links {
    display: flex;
    gap: 16px;
}

.legal-links a {
    font-size: 13px;
    color: var(--color-text-muted);
}

.legal-links a:hover {
    color: var(--color-text);
}

.footer-badges {
    display: flex;
    gap: 12px;
}

.badge {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

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

    .hero-content {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-integrations {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

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

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

    .customers-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-card.featured {
        order: -1;
    }

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

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

@media (max-width: 768px) {
    :root {
        --navbar-height: 64px;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding-top: calc(var(--navbar-height) + 40px);
        padding-bottom: 80px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-integrations {
        flex-direction: column;
        gap: 12px;
    }

    .platform-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

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

    .connected-grid {
        gap: 24px;
    }

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

    .cta-buttons {
        flex-direction: column;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 12px;
    }

    .radar-container {
        width: 300px;
        height: 300px;
    }

    .radar {
        width: 220px;
        height: 220px;
    }

    .radar-circle:nth-child(1) { width: 70px; height: 70px; }
    .radar-circle:nth-child(2) { width: 145px; height: 145px; }
    .radar-circle:nth-child(3) { width: 220px; height: 220px; }

    .radar-sweep {
        width: 110px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .platform-card,
    .feature-card {
        padding: 24px;
    }

    .code-content {
        font-size: 11px;
        padding: 16px;
    }

    .demo-tabs {
        gap: 4px;
    }

    .demo-tab {
        padding: 8px 12px;
        font-size: 12px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* Mobile Menu Open State */
body.menu-open {
    overflow: hidden;
}

body.menu-open .nav-links {
    display: flex;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    background: var(--color-bg-darker);
    z-index: 999;
}

body.menu-open .nav-links a {
    font-size: 24px;
}

body.menu-open .mobile-menu-btn span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

body.menu-open .mobile-menu-btn span:nth-child(2) {
    opacity: 0;
}

body.menu-open .mobile-menu-btn span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
    .platform-card,
    .feature-card,
    .stat-item {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.6s ease forwards;
    }

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

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

    .stat-item:nth-child(1) { animation-delay: 0.1s; }
    .stat-item:nth-child(2) { animation-delay: 0.2s; }
    .stat-item:nth-child(3) { animation-delay: 0.3s; }
    .stat-item:nth-child(4) { animation-delay: 0.4s; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   AUTH MODAL
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    margin: 20px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: color var(--transition-normal);
}

.modal-close:hover {
    color: var(--color-text);
}

.auth-form h2 {
    font-size: 24px;
    margin-bottom: 8px;
    text-align: center;
}

.auth-form > p {
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-text-light);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    color: var(--color-text);
    background: var(--color-bg-darker);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.form-group input::placeholder {
    color: var(--color-text-muted);
}

.form-error {
    color: #ef4444;
    font-size: 14px;
    margin-bottom: 16px;
    min-height: 20px;
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.auth-switch a {
    color: var(--color-primary);
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-success {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #000;
}

.auth-success h2 {
    margin-bottom: 8px;
}

.auth-success p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.hidden {
    display: none !important;
}

.user-greeting {
    color: var(--color-text-light);
    font-size: 14px;
}
