/* ===================================
   AutoReply Mate - Modern Design
   =================================== */

/* Inter Fallback - metrici calibrate să minimizeze CLS la font swap */
@font-face {
    font-family: 'Inter Fallback';
    src: local('Arial'), local('Helvetica Neue'), local('sans-serif');
    ascent-override: 90.20%;
    descent-override: 22.48%;
    line-gap-override: 0%;
    size-adjust: 107.40%;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors - Green Theme */
    --primary-green: #00d563;
    --primary-dark: #00a84d;
    --primary-light: #00ff75;
    --accent-green: #00ff9d;
    
    /* Neutral Colors */
    --bg-dark: #0a0f1a;
    --bg-card: #131a2a;
    --bg-card-hover: #1a2332;
    --text-primary: #ffffff;
    --text-secondary: #b4b9c6;
    --text-muted: #6b7280;
    
    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #00d563 0%, #00ff9d 100%);
    --gradient-secondary: linear-gradient(135deg, #00a84d 0%, #00d563 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 213, 99, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 213, 99, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 213, 99, 0.2);
    --shadow-glow: 0 0 40px rgba(0, 213, 99, 0.3);
    
    /* Typography */
    --font-family: 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px 20px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Navigation
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 213, 99, 0.1);
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-green);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--primary-green);
    transition: all 0.3s ease;
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    position: relative;
    padding: 160px 20px 100px;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background: rgba(0, 213, 99, 0.1);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    max-width: 400px;
    animation: float 6s ease-in-out infinite;
}

.app-screenshot {
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: var(--shadow-glow);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 213, 99, 0.15) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

.shape-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    animation-delay: 2s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* ===================================
   Section Styles
   =================================== */

.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 213, 99, 0.1);
    color: var(--primary-green);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 213, 99, 0.2);
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   New Features Section
   =================================== */

.section-new {
    background: var(--bg-card);
    position: relative;
}

.features-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card-new {
    background: var(--bg-dark);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(0, 213, 99, 0.1);
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.feature-card-new:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card-new h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card-new p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===================================
   Features Grid
   =================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    border-color: rgba(0, 213, 99, 0.3);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon-box {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===================================
   How It Works Section
   =================================== */

.section-how {
    background: var(--bg-card);
}

.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background: var(--bg-dark);
    padding: 40px 30px;
    border-radius: 20px;
    border: 2px solid rgba(0, 213, 99, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.step:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--bg-dark);
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.step p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.step-arrow {
    font-size: 36px;
    color: var(--primary-green);
    font-weight: 300;
}

/* ===================================
   Download Section
   =================================== */

.section-download {
    background: var(--bg-dark);
}

/* ===================================
   Use Cases Section
   =================================== */

.section-use-cases {
    background: var(--bg-card);
}

/* ===================================
   Privacy Section
   =================================== */

.section-privacy {
    background: var(--bg-dark);
}

.section-privacy .section-header h2 {
    color: var(--primary-green);
}

.download-card {
    background: var(--gradient-primary);
    padding: 80px 60px;
    border-radius: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-card h2 {
    font-size: 42px;
    color: var(--bg-dark);
    margin-bottom: 15px;
}

.download-card > p {
    font-size: 18px;
    color: rgba(10, 15, 26, 0.8);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-download {
    background: var(--bg-dark);
    color: var(--primary-green);
    font-size: 18px;
    padding: 18px 40px;
}

.btn-download:hover {
    background: var(--bg-card);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.download-info {
    margin-top: 20px;
    color: rgba(10, 15, 26, 0.7);
    font-size: 14px;
}

.download-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.download-features span {
    background: rgba(10, 15, 26, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--bg-dark);
    font-weight: 500;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background: var(--bg-card);
    padding: 60px 20px 30px;
    border-top: 1px solid rgba(0, 213, 99, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-green);
}

.footer-section p {
    color: #c4c9d4;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-green);
}

.footer-link-highlight {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link-highlight:hover {
    color: var(--accent-green);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 213, 99, 0.1);
    color: #9ca3af;
}

/* ===================================
   Legal Pages
   =================================== */

.legal-section {
    padding-top: 120px;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 60px;
    border-radius: 20px;
    border: 1px solid rgba(0, 213, 99, 0.1);
}

.legal-content h1 {
    font-size: 42px;
    margin-bottom: 10px;
    color: var(--primary-green);
}

.legal-date {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 14px;
}

.legal-text h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.legal-text h3 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 12px;
    color: var(--primary-green);
}

.legal-text h4 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.legal-text p {
    margin-bottom: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-text ul,
.legal-text ol {
    margin: 15px 0 15px 30px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-text li {
    margin-bottom: 8px;
}

.legal-text a {
    color: var(--primary-green);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.legal-text a:hover {
    border-bottom-color: var(--primary-green);
}

.legal-text strong {
    color: var(--text-primary);
}

.legal-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 213, 99, 0.1);
    text-align: center;
}

.privacy-summary {
    background: rgba(0, 213, 99, 0.05);
    border: 1px solid rgba(0, 213, 99, 0.2);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
}

.privacy-summary h3 {
    color: var(--primary-green);
    margin-top: 0;
    margin-bottom: 20px;
}

.legal-nav {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .phone-mockup {
        max-width: 300px;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(10, 15, 26, 0.98);
        flex-direction: column;
        padding: 30px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid rgba(0, 213, 99, 0.1);
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .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(7px, -6px);
    }
    
    .hero {
        padding: 120px 20px 60px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .section {
        padding: 60px 20px;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .features-grid,
    .features-grid-new {
        grid-template-columns: 1fr;
    }
    
    .download-card {
        padding: 50px 30px;
    }
    
    .download-card h2 {
        font-size: 32px;
    }
    
    .legal-content {
        padding: 30px 20px;
    }
    
    .legal-content h1 {
        font-size: 32px;
    }
    
    .legal-text h2 {
        font-size: 24px;
    }
    
    .legal-text h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .legal-nav {
        flex-direction: column;
    }
}

/* ===================================
   Utility Classes
   =================================== */

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--primary-green);
    color: var(--bg-dark);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===================================
   Server API Section (New)
   =================================== */

.section-server-api {
    background: linear-gradient(135deg, rgba(0, 213, 99, 0.05), rgba(0, 255, 157, 0.02));
    position: relative;
    overflow: hidden;
}

.section-server-api::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 213, 99, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 255, 157, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.badge-pro {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.server-api-content {
    position: relative;
    z-index: 1;
}

.api-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 40px;
    background: var(--bg-card);
    border: 2px solid var(--primary-green);
    border-radius: 24px;
    box-shadow: 0 0 40px rgba(0, 213, 99, 0.2);
}

.api-hero h3 {
    color: var(--text-primary);
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.api-hero p {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.8;
}

.api-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.api-feature {
    background: var(--bg-card);
    border: 1px solid rgba(0, 213, 99, 0.2);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.api-feature:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-green);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 213, 99, 0.3);
}

.api-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: block;
}

.api-feature h4 {
    color: var(--text-primary);
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 600;
}

.api-feature p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.api-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 20px;
}

/* Responsive adjustments for Server API */
@media (max-width: 768px) {
    .api-hero {
        padding: 30px 20px;
    }
    
    .api-hero h3 {
        font-size: 24px;
    }
    
    .api-hero p {
        font-size: 16px;
    }
    
    .api-features {
        grid-template-columns: 1fr;
    }
    
    .api-cta {
        flex-direction: column;
    }
    
    .api-cta .btn {
        width: 100%;
    }
}

/* ============================================
   FAQ Section
   ============================================ */
.section-faq {
    background: var(--bg-dark);
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 24px 28px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.faq-item:hover {
    border-color: rgba(0, 213, 99, 0.35);
    transform: translateY(-2px);
}

.faq-question {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.faq-answer {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.75;
    margin: 0;
}

@media (max-width: 768px) {
    .faq-item {
        padding: 18px 20px;
    }
    .faq-question {
        font-size: 16px;
    }
    .faq-answer {
        font-size: 14px;
    }
}

/* ===================================
   Animations (moved from JS to prevent forced reflow)
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.8s ease forwards;
}

.back-to-top:active {
    transform: translateY(-2px) !important;
}

/* Hero entrance animations via CSS (no JS reflow) */
.hero-animate {
    animation: fadeInUp 0.7s ease both;
}

.hero-animate-img {
    animation: fadeInUp 0.7s ease 0.2s both;
}
