/* Pynqr Website Styles
   Color Palette from Pynqr iOS App */

:root {
    /* Primary Colors */
    --accent: #F00078;
    --accent-deep: #C80064;
    --accent-glow: rgba(240, 0, 120, 0.4);

    /* Background Colors */
    --bg-primary: #121212;
    --bg-surface: #1E1E1E;
    --bg-elevated: #2A2A2A;
    --bg-card: rgba(30, 30, 30, 0.8);

    /* Text Colors */
    --text-primary: rgba(255, 255, 255, 0.87);
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.4);

    /* Semantic Colors */
    --success: #34C759;
    --error: #FF3B30;
    --warning: #FF9500;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--accent-glow);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

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

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

.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    padding: var(--space-sm) 0;
    background: rgba(18, 18, 18, 0.95);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

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

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

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

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

.nav-cta {
    padding: var(--space-sm) var(--space-lg);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

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

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

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

.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 999;
    padding: var(--space-xl);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.mobile-nav-links a {
    font-size: 1.25rem;
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    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;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: rgba(240, 0, 120, 0.1);
    border: 1px solid rgba(240, 0, 120, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: var(--space-lg);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 480px;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

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

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

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

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Radar Animation */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.radar-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
}

.radar {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at center,
        rgba(240, 0, 120, 0.05) 0%,
        rgba(18, 18, 18, 0.8) 70%);
    box-shadow:
        inset 0 0 60px rgba(240, 0, 120, 0.1),
        0 0 80px rgba(240, 0, 120, 0.15);
}

.radar-grid {
    position: absolute;
    inset: 0;
}

.radar-circle {
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.circle-1 { width: 25%; height: 25%; }
.circle-2 { width: 50%; height: 50%; }
.circle-3 { width: 75%; height: 75%; }
.circle-4 { width: 100%; height: 100%; border-style: solid; border-color: rgba(255, 255, 255, 0.15); }

.radar-crosshair {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
}

.radar-crosshair.horizontal {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
}

.radar-crosshair.vertical {
    width: 1px;
    height: 100%;
    left: 50%;
    top: 0;
}

/* Radar Sweep - The Main Animation */
.radar-sweep {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    animation: sweep 2.5s linear infinite;
}

.radar-sweep::before {
    content: '';
    position: absolute;
    width: 50%;
    height: 50%;
    top: 0;
    left: 50%;
    background: conic-gradient(
        from -90deg at 0% 100%,
        transparent 0deg,
        rgba(240, 0, 120, 0.5) 0deg,
        rgba(240, 0, 120, 0.3) 30deg,
        rgba(240, 0, 120, 0.1) 50deg,
        transparent 70deg
    );
    transform-origin: 0% 100%;
}

/* Radar beam line - integrated with sweep */
.radar-sweep::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    top: 50%;
    left: 50%;
    transform: translateY(-50%);
    background: linear-gradient(90deg, var(--accent) 0%, rgba(240, 0, 120, 0.6) 40%, transparent 100%);
    border-radius: 2px;
    box-shadow: 0 0 15px var(--accent), 0 0 30px rgba(240, 0, 120, 0.5);
}

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

/* Hide the separate glow element - now integrated */
.radar-glow {
    display: none;
}

/* Radar Pulses */
.radar-pulse {
    position: absolute;
    border: 2px solid var(--accent);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.pulse-1 {
    width: 30%;
    height: 30%;
    animation: radarPulse 3s ease-out infinite;
}

.pulse-2 {
    width: 50%;
    height: 50%;
    animation: radarPulse 3s ease-out infinite 1s;
}

.pulse-3 {
    width: 70%;
    height: 70%;
    animation: radarPulse 3s ease-out infinite 2s;
}

@keyframes radarPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Radar Devices */
.radar-devices {
    position: absolute;
    inset: 0;
}

.device {
    position: absolute;
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: deviceAppear 0.5s ease-out forwards;
}

.device-dot {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent-glow);
    animation: devicePulse 2s ease-in-out infinite;
}

.device::after {
    content: attr(data-device);
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: var(--text-secondary);
    white-space: nowrap;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.device:hover::after {
    opacity: 1;
}

.device-1 { left: 30%; top: 25%; animation-delay: 0.2s; }
.device-2 { left: 70%; top: 35%; animation-delay: 0.4s; }
.device-3 { left: 20%; top: 55%; animation-delay: 0.6s; }
.device-4 { left: 50%; top: 50%; animation-delay: 0s; }
.device-5 { left: 75%; top: 65%; animation-delay: 0.8s; }
.device-6 { left: 35%; top: 75%; animation-delay: 1s; }
.device-7 { left: 65%; top: 20%; animation-delay: 1.2s; }

.device-4 .device-dot {
    width: 16px;
    height: 16px;
    background: var(--success);
    box-shadow: 0 0 10px var(--success), 0 0 20px rgba(52, 199, 89, 0.4);
}

@keyframes deviceAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    60% {
        transform: translate(-50%, -50%) scale(1.3);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

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

.radar-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: var(--bg-surface);
    border: 2px solid rgba(240, 0, 120, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(240, 0, 120, 0.2);
    z-index: 10;
}

.radar-center svg {
    width: 26px;
    height: 26px;
    color: var(--accent);
    animation: wifiPulse 2s ease-in-out infinite;
    margin-top: -4px; /* Offset for WiFi icon visual centering */
}

@keyframes wifiPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.scan-status {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.scan-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: 0.75rem;
    animation: float 2s ease-in-out infinite;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
}

.scroll-dot {
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: scrollDown 2s ease-in-out infinite;
}

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

@keyframes scrollDown {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 24px; opacity: 0.3; }
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-3xl);
}

.section-header.left-align {
    text-align: left;
    margin: 0 0 var(--space-xl);
}

.section-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(240, 0, 120, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Features Grid */
.features {
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(240, 0, 120, 0.2);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.feature-card.feature-large {
    grid-column: span 2;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(240, 0, 120, 0.15), rgba(200, 0, 100, 0.1));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

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

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.feature-tags span {
    padding: var(--space-xs) var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Tools Section */
.tools {
    background: var(--bg-surface);
}

.tools-showcase {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.tool-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow-x: auto;
    scrollbar-width: none;
}

.tool-tabs::-webkit-scrollbar {
    display: none;
}

.tool-tab {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-xl);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    position: relative;
}

.tool-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

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

.tool-tab.active {
    color: var(--accent);
}

.tool-tab.active::after {
    transform: scaleX(1);
}

.tool-tab svg {
    width: 20px;
    height: 20px;
}

.tool-content {
    padding: var(--space-2xl);
}

.tool-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.tool-panel.active {
    display: grid;
}

.tool-visual {
    display: flex;
    justify-content: center;
}

/* Terminal Styles */
.terminal {
    width: 100%;
    max-width: 400px;
    background: #0a0a0a;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: #1a1a1a;
}

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

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

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

.terminal-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
}

.terminal-body {
    padding: var(--space-lg);
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.85rem;
}

.ping-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
    animation-delay: calc(var(--delay) * 0.5s);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.ping-seq {
    color: var(--text-secondary);
}

.ping-time.success {
    color: var(--success);
}

.ping-stats {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Traceroute Visual */
.traceroute-visual {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.hop {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    opacity: 0;
    animation: hopAppear 0.4s ease forwards;
    animation-delay: calc(var(--hop) * 0.2s);
}

@keyframes hopAppear {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}

.hop-num {
    width: 28px;
    height: 28px;
    background: rgba(240, 0, 120, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
}

.hop-host {
    flex: 1;
    font-family: 'SF Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.hop-time {
    font-size: 0.85rem;
    color: var(--success);
}

.hop.destination .hop-num {
    background: var(--success);
    color: white;
}

.hop-line {
    width: 2px;
    height: 20px;
    background: rgba(240, 0, 120, 0.3);
    margin-left: 26px;
}

/* DNS Visual */
.dns-visual {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    width: 100%;
    max-width: 350px;
}

.dns-record {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
}

.dns-type {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'SF Mono', monospace;
}

.dns-type.a { background: rgba(52, 199, 89, 0.2); color: var(--success); }
.dns-type.aaaa { background: rgba(0, 122, 255, 0.2); color: #007AFF; }
.dns-type.mx { background: rgba(255, 149, 0, 0.2); color: var(--warning); }
.dns-type.txt { background: rgba(175, 82, 222, 0.2); color: #AF52DE; }

.dns-value {
    font-family: 'SF Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* TLS Visual */
.tls-visual {
    width: 100%;
    max-width: 350px;
}

.tls-cert {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cert-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(52, 199, 89, 0.1);
    border-bottom: 1px solid rgba(52, 199, 89, 0.2);
}

.cert-header svg {
    width: 24px;
    height: 24px;
    color: var(--success);
}

.cert-header span {
    font-weight: 600;
    color: var(--success);
}

.cert-details {
    padding: var(--space-lg);
}

.cert-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cert-row:last-child {
    border-bottom: none;
}

.cert-row span:first-child {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.cert-row span:last-child {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Ports Visual */
.ports-visual {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
    max-width: 300px;
}

.port {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
}

.port-num {
    width: 50px;
    font-family: 'SF Mono', monospace;
    font-weight: 600;
    color: var(--text-primary);
}

.port-name {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.port-status {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.port.open .port-status {
    background: rgba(52, 199, 89, 0.2);
    color: var(--success);
}

.port.closed .port-status {
    background: rgba(255, 59, 48, 0.2);
    color: var(--error);
}

/* Tool Info */
.tool-info h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.tool-info > p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.tool-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.tool-features li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--text-secondary);
}

.tool-features svg {
    width: 20px;
    height: 20px;
    color: var(--success);
    flex-shrink: 0;
}

/* Security Section */
.security {
    background: var(--bg-primary);
}

.security .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.security-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.security-feature {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.security-feature:hover {
    border-color: rgba(240, 0, 120, 0.2);
    transform: translateX(8px);
}

.security-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(240, 0, 120, 0.15), rgba(200, 0, 100, 0.1));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.security-icon svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.security-text h4 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.security-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Security Visual */
.security-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-container {
    position: relative;
    width: 280px;
    height: 320px;
}

.shield {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: shieldFloat 3s ease-in-out infinite;
}

.shield svg {
    width: 120px;
    height: 140px;
    filter: drop-shadow(0 0 30px rgba(240, 0, 120, 0.4));
}

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

.shield-pulse {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 180px;
    border: 2px solid var(--accent);
    border-radius: 50% 50% 50% 50% / 45% 45% 55% 55%;
    opacity: 0;
    animation: shieldPulse 2s ease-out infinite;
}

@keyframes shieldPulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

.security-stat {
    position: absolute;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    box-shadow: var(--shadow-md);
}

.stat-1 {
    top: 20px;
    right: 0;
    animation: statFloat 3s ease-in-out infinite 0.5s;
}

.stat-2 {
    bottom: 40px;
    left: 0;
    animation: statFloat 3s ease-in-out infinite 1s;
}

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

.stat-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.stat-icon.warning svg {
    color: var(--warning);
}

.stat-text {
    color: var(--text-secondary);
}

/* Comparison Section */
.comparison {
    background: var(--bg-surface);
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: var(--bg-card);
}

.comparison-table th,
.comparison-table td {
    padding: var(--space-lg);
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-table th {
    background: var(--bg-elevated);
    font-weight: 600;
    font-size: 0.9rem;
}

.comparison-table th.highlight {
    background: linear-gradient(135deg, rgba(240, 0, 120, 0.2), rgba(200, 0, 100, 0.1));
    color: var(--accent);
}

.comparison-table td {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.comparison-table td.highlight {
    background: rgba(240, 0, 120, 0.05);
    color: var(--text-primary);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.check, .cross, .partial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: var(--space-sm);
}

.check::before {
    content: '✓';
    background: rgba(52, 199, 89, 0.2);
    color: var(--success);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.cross::before {
    content: '✕';
    background: rgba(255, 59, 48, 0.2);
    color: var(--error);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.partial::before {
    content: '~';
    background: rgba(255, 149, 0, 0.2);
    color: var(--warning);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
}

/* Pricing Section */
.pricing {
    background: var(--bg-primary);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    position: relative;
    transition: all var(--transition-base);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(240, 0, 120, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-xs) var(--space-md);
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-header h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-xs);
}

.price {
    font-size: 3rem;
    font-weight: 800;
}

.period {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pricing-features svg {
    width: 20px;
    height: 20px;
    color: var(--success);
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-features strong {
    color: var(--text-primary);
}

.pricing-note {
    display: block;
    text-align: center;
    margin-top: var(--space-md);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Download Section */
.download {
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-primary) 100%);
    text-align: center;
    padding: 120px 0;
}

.download-content {
    max-width: 600px;
    margin: 0 auto;
}

.download-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.download-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.app-store-badge {
    display: inline-flex;
    padding: var(--space-lg) var(--space-2xl);
    background: white;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    margin-bottom: var(--space-xl);
}

.app-store-badge:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.app-store-badge svg {
    width: 150px;
    height: 50px;
}

.download-features {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.download-features span {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.download-features svg {
    width: 18px;
    height: 18px;
    color: var(--success);
}

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: var(--space-md);
    max-width: 280px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.footer-column h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--space-sm);
}

.footer-column a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }

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

    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .radar-container {
        max-width: 400px;
    }

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

    .feature-card.feature-large {
        grid-column: span 2;
    }

    .security .container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .security-visual {
        order: -1;
    }

    .section-header.left-align {
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-links {
        justify-items: center;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-cta {
        display: none;
    }

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

    .mobile-menu {
        display: block;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-scroll {
        display: none;
    }

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

    .feature-card.feature-large {
        grid-column: span 1;
    }

    .tool-panel {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .tool-visual {
        order: -1;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    section {
        padding: 60px 0;
    }
}

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

    .hero-title {
        font-size: 2rem;
    }

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

    .hero-cta .btn {
        width: 100%;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    .stat-divider {
        display: none;
    }

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

    .tool-tabs {
        flex-wrap: nowrap;
    }

    .tool-tab {
        padding: var(--space-md);
    }

    .tool-tab span {
        display: none;
    }

    .download-features {
        flex-direction: column;
        align-items: center;
    }

    .comparison-table th,
    .comparison-table td {
        padding: var(--space-md);
        font-size: 0.8rem;
    }
}

/* Animations for scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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