/* Phantom Farm Modern Landing Page Design System */
:root {
    --bg-dark: #090d16;
    --bg-card: rgba(15, 23, 42, 0.7);
    --bg-glass: rgba(30, 41, 59, 0.5);
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(56, 189, 248, 0.3);
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --cyan: #38bdf8;
    --purple: #a855f7;
    --magenta: #ec4899;
    --gold: #f59e0b;
    --green: #10b981;
    --red: #ef4444;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --font-main: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.35);
    --shadow-cyan: 0 0 25px rgba(56, 189, 248, 0.3);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    direction: rtl;
    overflow-x: hidden;
}

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

/* Utilities */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.gradient-text {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--primary) 50%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-yellow { color: var(--gold); }
.icon-cyan { color: var(--cyan); }
.icon-purple { color: var(--purple); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

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

.btn-outline {
    background: transparent;
    border-color: var(--border-glass);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--cyan);
    background: rgba(56, 189, 248, 0.1);
    color: var(--cyan);
}

.btn-glass {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

/* Glass Panels */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Header & Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(9, 13, 22, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 12px 0;
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--cyan) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    box-shadow: var(--shadow-cyan);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.brand-sub {
    font-size: 11px;
    color: var(--cyan);
    letter-spacing: 0.5px;
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 28px;
}

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

.nav-links a:hover, .nav-links a.active {
    color: var(--cyan);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--cyan);
    border-radius: 2px;
    box-shadow: var(--shadow-cyan);
}

.nav-actions {
    display: flex;
    gap: 12px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -150px;
    right: 15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(56, 189, 248, 0.05) 50%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--cyan);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(56, 189, 248, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.hero-title {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 620px;
}

.hero-features-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-main);
}

.chip i { color: var(--cyan); }

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
}

.visual-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: visible;
}

.hero-img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glow);
    box-shadow: var(--shadow-glow);
    display: block;
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: float 4s ease-in-out infinite;
}

.card-1 {
    bottom: 20px;
    right: -20px;
    animation-delay: 0s;
}

.card-2 {
    top: 20px;
    left: -20px;
    animation-delay: 2s;
}

.float-card i {
    font-size: 24px;
}

.float-card strong {
    display: block;
    font-size: 14px;
    color: #fff;
}

.float-card small {
    font-size: 12px;
    color: var(--text-muted);
}

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

/* Sections General */
section {
    padding: 90px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

/* Showcase / Preview Section */
.preview-section {
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
}

.preview-display {
    padding: 24px;
    border: 1px solid var(--border-glow);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.preview-browser-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-glass);
}

.browser-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.browser-address-bar {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-glass);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    direction: ltr;
}

.browser-address-bar i {
    color: var(--green);
}

.status-live {
    font-size: 12px;
    color: var(--cyan);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-live i {
    font-size: 8px;
    color: var(--green);
    animation: pulse 1.5s infinite;
}

.preview-img-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #020617;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.system-screenshot {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.preview-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.pf-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-glass);
    padding: 16px 20px;
    border-radius: var(--radius-md);
}

.pf-card i {
    font-size: 26px;
    color: var(--cyan);
}

.pf-card strong {
    display: block;
    font-size: 14px;
    color: #fff;
    margin-bottom: 4px;
}

.pf-card small {
    font-size: 12px;
    color: var(--text-muted);
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--cyan);
    box-shadow: var(--shadow-cyan);
}

.stat-card.highlight {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.15) 0%, var(--bg-card) 100%);
}

.stat-icon {
    font-size: 28px;
    color: var(--cyan);
    margin-bottom: 16px;
}

.stat-value {
    font-size: 38px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-value small {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.stat-desc {
    font-size: 13px;
    color: var(--text-dim);
}

/* Benchmark Box & Tables */
.benchmark-box {
    padding: 30px;
}

.benchmark-box h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cyan);
}

.table-responsive {
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 14px;
}

.custom-table th, .custom-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-glass);
}

.custom-table th {
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-muted);
    font-weight: 600;
}

.custom-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.badge-success { background: rgba(16, 185, 129, 0.2); color: var(--green); }
.badge-primary { background: rgba(99, 102, 241, 0.2); color: var(--cyan); }

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.feature-img-box {
    height: 220px;
    overflow: hidden;
    background: #000;
}

.feature-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-img-box img {
    transform: scale(1.05);
}

.feature-body {
    padding: 28px;
    flex-grow: 1;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--cyan);
    margin-bottom: 20px;
}

.feature-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.feature-body p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Comparison Section */
.comparison-table-wrapper {
    padding: 30px;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 14px;
}

.comparison-table th, .comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-glass);
}

.comparison-table th {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 700;
}

.comparison-table th.highlight-col,
.comparison-table td.highlight-col {
    background: rgba(99, 102, 241, 0.08);
    border-left: 1px solid rgba(99, 102, 241, 0.2);
    border-right: 1px solid rgba(99, 102, 241, 0.2);
}

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

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.pricing-card.popular {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.15) 0%, var(--bg-card) 100%);
    box-shadow: var(--shadow-glow);
}

.popular-ribbon {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.plan-header {
    margin-bottom: 24px;
}

.plan-badge {
    font-size: 12px;
    color: var(--cyan);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.plan-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

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

.plan-price {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-glass);
}

.plan-price .amount {
    font-size: 28px;
    font-weight: 900;
    color: var(--gold);
}

.plan-price .period {
    display: block;
    font-size: 12px;
    color: var(--cyan);
    margin-top: 4px;
}

.plan-features {
    list-style: none;
    margin-bottom: 28px;
    flex-grow: 1;
}

.plan-features li {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.total-price-box {
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.total-info h4 {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 6px;
}

.total-amount {
    font-size: 32px;
    font-weight: 900;
    color: var(--gold);
}

.total-amount small {
    font-size: 16px;
    color: var(--text-muted);
}

/* Contact & Form */
.contact-wrapper {
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}

.contact-info .section-tag {
    margin-bottom: 10px;
}

.contact-info h2 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 30px;
}

.contact-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.c-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.c-item i {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--cyan);
}

.c-item strong {
    display: block;
    color: #fff;
    font-size: 15px;
}

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

.contact-form-card {
    background: rgba(15, 23, 42, 0.9);
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
}

.contact-form-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 24px;
}

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

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

.form-group label i {
    color: var(--cyan);
    margin-left: 6px;
}

.req { color: var(--red); }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-glass);
    color: #fff;
    font-family: var(--font-main);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan);
    background: rgba(30, 41, 59, 0.9);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.form-response {
    margin-top: 16px;
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 14px;
    display: none;
    text-align: center;
}

.form-response.success {
    display: block;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid var(--green);
    color: var(--green);
}

.form-response.error {
    display: block;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--red);
    color: var(--red);
}

/* Footer */
.footer {
    background: #05080e;
    border-top: 1px solid var(--border-glass);
    padding: 60px 0 30px;
}

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

.footer-brand p {
    color: var(--text-dim);
    font-size: 14px;
    margin-top: 16px;
    max-width: 350px;
}

.footer-links h4,
.footer-contact-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-contact-info p {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
    font-size: 13px;
    color: var(--text-dim);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-subtitle {
        margin: 0 auto 28px;
    }
    .hero-features-strip, .hero-cta-group {
        justify-content: center;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-actions {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .hero-title {
        font-size: 30px;
    }
    .total-price-box {
        flex-direction: column;
        text-align: center;
    }
}
