/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* iOS Colors */
    --primary-color: #007AFF;
    --primary-dark: #0051D5;
    --secondary-color: #5856D6;
    --success-color: #34C759;
    --warning-color: #FF9500;
    --error-color: #FF3B30;

    /* Platform Colors */
    --telegram-color: #0088cc;
    --whatsapp-color: #25D366;
    --email-color: #EA4335;
    --slack-color: #4A154B;
    --discord-color: #5865F2;
    --teams-color: #6264A7;

    /* Neutral Colors */
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #86868b;
    --background: #ffffff;
    --background-secondary: #f5f5f7;
    --background-tertiary: #e8e8ed;
    --border-color: #d2d2d7;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Typography */
    --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", "Monaco", "Inconsolata", "Fira Code", "Droid Sans Mono", monospace;

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

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: auto;
}

body {
    font-family: var(--font-system);
    color: var(--text-primary);
    background: var(--background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
}

p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.6;
}

/* ===== Header & Navigation ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-xs) 0;
    min-height: 52px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.logo svg {
    flex-shrink: 0;
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

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

.btn-nav {
    background: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.btn-nav:hover {
    background: var(--primary-dark);
}

.nav-badge {
    transition: transform var(--transition-fast);
    display: flex;
    align-items: center;
}

.nav-badge img {
    display: block;
    height: 32px;
    width: auto;
}

.nav-badge:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

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

.btn-secondary:hover {
    background: var(--background-tertiary);
}

/* ===== Hero Section ===== */
.hero {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

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

.hero h1 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.hero-note {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* Phone Mockup */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.15));
}

.phone-frame {
    width: 280px;
    height: 570px;
    background: #1d1d1f;
    border-radius: 40px;
    padding: 12px;
    position: relative;
}

/* Phone notch removed */

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    border-radius: 32px;
    overflow: hidden;
}

.app-preview {
    padding: var(--spacing-md);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-top: var(--spacing-lg);
}

.preview-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.add-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.rule-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.rule-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.rule-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
}

.rule-icon.telegram {
    background: linear-gradient(135deg, #0088cc, #00aced);
}

.rule-icon.email {
    background: linear-gradient(135deg, #EA4335, #FF6F61);
}

.rule-icon.whatsapp {
    background: linear-gradient(135deg, #25D366, #20B958);
}

.rule-info {
    flex: 1;
}

.rule-info strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.rule-info small {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.rule-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success-color);
}

/* ===== Section Styles ===== */
section {
    padding: var(--spacing-3xl) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-2xl);
}

.section-header h2 {
    margin-bottom: var(--spacing-md);
}

.section-header p {
    font-size: 1.125rem;
}

/* ===== Features Section ===== */
.features {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    padding: var(--spacing-md);
    background: var(--background-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.feature-card:hover {
    background: white;
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    font-size: 1.125rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== Platforms Section (List Style) ===== */
.platforms {
    background: var(--background-secondary);
}

.platforms-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.platform-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
}

.platform-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.platform-icon-small {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

.platform-info {
    flex: 1;
}

.platform-info h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.platform-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.platform-arrow {
    flex-shrink: 0;
    color: var(--text-tertiary);
    transition: transform var(--transition-fast);
}

.platform-item:hover .platform-arrow {
    transform: translateX(4px);
    color: var(--primary-color);
}

/* ===== Use Cases Section ===== */
.use-cases {
    background: white;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-lg);
}

.use-case {
    text-align: center;
    padding: var(--spacing-lg);
}

.use-case-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.use-case h3 {
    margin-bottom: var(--spacing-sm);
}

.use-case p {
    font-size: 0.9375rem;
}

/* ===== Setup Section ===== */
.setup-section {
    background: var(--background-secondary);
}

.setup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--spacing-md);
}

.setup-card {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-lg);
    background: white;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.setup-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.setup-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.setup-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.setup-card p {
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
    flex: 1;
}

.setup-time {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* ===== FAQ Section ===== */
.faq {
    background: white;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: white;
    border: none;
    text-align: left;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: var(--background-secondary);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--text-secondary);
}

/* ===== Download Section ===== */
.download {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

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

.download-content h2 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.download-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
    font-size: 1.125rem;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.app-store-badge {
    transition: transform var(--transition-fast);
    display: inline-block;
}

.app-store-badge img {
    display: block;
    height: 40px;
    width: auto;
}

.app-store-badge-large img {
    height: 64px;
}

.app-store-badge:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.download-info {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== Footer ===== */
.footer {
    background: var(--text-primary);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

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

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

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

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

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

    .platforms-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px) saturate(180%);
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        transition: all var(--transition-base);
        pointer-events: none;
    }

    .nav-links.mobile-active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: var(--spacing-sm);
        font-size: 1.125rem;
    }

    .nav-badge img {
        height: 40px;
        margin: 0 auto;
    }

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

    .hero {
        padding: var(--spacing-2xl) 0;
    }

    section {
        padding: var(--spacing-2xl) 0;
    }

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

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
    }

    .phone-frame {
        width: 240px;
        height: 490px;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-xs: 0.375rem;
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-2xl: 2.5rem;
        --spacing-3xl: 3rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .phone-mockup {
        transform: scale(0.85);
    }
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

/* ===== Print Styles ===== */
@media print {
    .header,
    .footer,
    .download,
    .cta-buttons {
        display: none;
    }
}
