:root {
    --primary: #38bdf8;
    --primary-hover: #7dd3fc;
    --secondary: #818cf8;
    --accent: #fbbf24;
    --dark: #0f172a;
    --surface: #1e293b;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-600: #475569;
    --slate-900: #0f172a;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.2);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3);
    --radius: 16px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--slate-200);
    background-color: var(--dark);
    overflow-x: hidden;
}

header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: '📝';
    font-size: 1.2rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--slate-400);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary);
}

.lang-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
}

.lang-button {
    background: transparent;
    border: none;
    color: var(--slate-400);
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    transition: var(--transition);
}

.lang-button.active {
    background: var(--primary);
    color: var(--dark);
    box-shadow: var(--shadow-sm);
}

main {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    padding: 120px 2rem;
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.05;
    z-index: -1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.05;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 2rem;
    letter-spacing: -0.05em;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--slate-400);
    margin-bottom: 3rem;
    max-width: 600px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 3rem;
    background-color: var(--primary);
    color: var(--dark);
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 10px 25px -5px rgba(56, 189, 248, 0.4);
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 20px 30px -10px rgba(56, 189, 248, 0.5);
}

/* App Mockup */
.hero-mockup {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.phone-frame {
    width: 300px;
    height: 600px;
    background: #000000;
    border-radius: 48px;
    padding: 10px;
    border: 6px solid #334155;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.6);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: var(--transition);
}

.phone-frame:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #0f172a;
    border-radius: 38px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-content {
    padding: 24px;
    flex-grow: 1;
}

.app-search {
    background: #1e293b;
    border-radius: 12px;
    height: 40px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: #475569;
    font-size: 0.8rem;
}

.app-article {
    animation: fadeIn 0.5s ease;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
}

.app-summary {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 16px;
    border-left: 2px solid var(--primary);
    padding-left: 12px;
}

.app-facts {
    background: rgba(251, 191, 36, 0.1);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
}

.fact-item {
    font-size: 0.75rem;
    color: #fbbf24;
    margin-bottom: 4px;
    display: flex;
    gap: 8px;
}

/* Sections */
section {
    padding: 120px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 5rem;
    color: var(--white);
    letter-spacing: -0.04em;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 3rem;
}

.feature-item {
    background: var(--surface);
    padding: 3rem;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-12px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: var(--shadow-lg);
}

.icon-circle {
    width: 64px;
    height: 64px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.feature-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.feature-item p {
    color: var(--slate-400);
}

/* Core Features Section */
.core-features {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 64px;
    margin: 80px auto;
    max-width: calc(1200px - 4rem);
    padding: 100px 4rem;
}

.core-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.core-item {
    display: flex;
    gap: 1.5rem;
}

.core-item i {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-top: 0.25rem;
}

.core-item h3 {
    margin-bottom: 0.5rem;
    color: var(--white);
}

/* Editorial Content Section */
.editorial-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.editorial-section p {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--slate-300);
    font-style: italic;
}

/* Privacy Section */
.privacy-section {
    background: var(--surface);
    border-radius: 40px;
    padding: 80px 4rem;
    margin: 100px auto;
}

.privacy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.privacy-item h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.privacy-note {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: var(--slate-400);
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Contact */
.contact {
    text-align: center;
    background: linear-gradient(to bottom, transparent, rgba(56, 189, 248, 0.05));
    border-radius: 64px 64px 0 0;
}

.contact h2 { margin-bottom: 2rem; }
.contact p { font-size: 1.25rem; color: var(--slate-400); margin-bottom: 3rem; }

footer {
    padding: 4rem 2rem;
    text-align: center;
    background: #070b14;
    color: var(--slate-600);
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RTL Support */
[dir="rtl"] .hero h1, [dir="rtl"] .hero p { text-align: right; }
[dir="rtl"] .phone-frame { transform: rotateY(10deg) rotateX(5deg); }
[dir="rtl"] .app-summary { border-left: none; border-right: 2px solid var(--primary); padding-left: 0; padding-right: 12px; }

@media (max-width: 968px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 4rem; }
    .hero p { margin: 0 auto 3rem; }
    .core-grid, .privacy-grid { grid-template-columns: 1fr; gap: 3rem; }
    .core-features { padding: 60px 2rem; margin: 40px 1rem; }
    .hero { padding: 80px 1.5rem; }
    h2 { font-size: 2.25rem; margin-bottom: 3rem; }
}
