/* Base styles */
:root {
    --background: #0e0e0e;
    --foreground: #ffffff;
    --primary: #ff6b00;
    --primary-light: rgba(255, 107, 0, 0.1);
    --secondary: #1a1a1a;
    --border: #333333;
    --text-gray: #a0a0a0;
}

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

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    direction: rtl;
    line-height: 1.6;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}

.header-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.icon-circle {
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle .icon {
    color: black;
}

/* Main content */
main {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.background-graph {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    opacity: 0.2;
}

.top-right {
    top: 25%;
    right: 16%;
}

.bottom-left {
    bottom: 33%;
    left: 20%;
}

.middle-left {
    top: 50%;
    left: 25%;
}

.coin-circle {
    border-radius: 50%;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.coin-circle .icon {
    color: var(--primary);
}

.large {
    height: 4rem;
    width: 4rem;
}

.large .icon {
    height: 2rem;
    width: 2rem;
}

.medium {
    height: 3rem;
    width: 3rem;
}

.medium .icon {
    height: 1.5rem;
    width: 1.5rem;
}

.small {
    height: 2.5rem;
    width: 2.5rem;
}

.small .icon {
    height: 1.25rem;
    width: 1.25rem;
}

.content-container {
    max-width: 1200px;
    width: 100%;
    padding: 3rem 1rem;
    z-index: 10;
}

/* Notification banner */
.notification-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 4rem;
}

.notification-banner {
    background: linear-gradient(to right, var(--secondary), var(--secondary));
    border: 1px solid rgba(255, 107, 0, 0.3);
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-banner .icon {
    color: var(--primary);
}

/* Main grid */
.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.text-content {
    text-align: center;
    order: 2;
}

@media (min-width: 1024px) {
    .text-content {
        text-align: right;
        order: 1;
    }
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    h1 {
        font-size: 5rem;
    }
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    h2 {
        font-size: 3.5rem;
    }
}

.accent-text {
    color: var(--primary);
}

.description {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .description {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Features */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .features {
        justify-content: flex-end;
    }
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-icon {
    color: var(--primary);
}

/* CTA buttons */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .cta-buttons {
        justify-content: flex-end;
    }
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn:hover {
    transform: scale(1.05);
}

.primary {
    background-color: var(--primary);
    color: black;
}

.primary:hover {
    background-color: rgba(255, 107, 0, 0.9);
}

.secondary {
    background-color: var(--secondary);
    border: 1px solid var(--border);
    color: white;
}

.secondary:hover {
    background-color: #252525;
}

/* Phone mockup */
.phone-mockup-container {
    display: flex;
    justify-content: center;
    order: 1;
}

@media (min-width: 1024px) {
    .phone-mockup-container {
        order: 2;
    }
}

.phone-mockup {
    position: relative;
}

.phone-frame {
    width: 280px;
    height: 580px;
    background-color: #222;
    border-radius: 40px;
    border: 4px solid var(--border);
    padding: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #111;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.app-screen {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--background), var(--secondary));
}

.app-header {
    height: 4rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.app-logo {
    color: var(--primary);
    font-weight: 700;
}

.app-icon {
    height: 2rem;
    width: 2rem;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-icon .icon {
    color: black;
}

.app-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.robot-circle {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background-color: var(--secondary);
    border: 4px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.robot-text {
    text-align: center;
}

.robot-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.robot-subtitle {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.trading-chart {
    width: 100%;
    height: 8rem;
    position: relative;
    overflow: hidden;
}

.mining-stats {
    width: 100%;
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.stat-card {
    background-color: var(--secondary);
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

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

.stat-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 33%;
    height: 1.5rem;
    background-color: #222;
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}

.decorative-circle {
    position: absolute;
    border-radius: 50%;
    background-color: var(--secondary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-left {
    top: -1rem;
    left: -1rem;
    width: 4rem;
    height: 4rem;
}

.bottom-right {
    bottom: -1.5rem;
    right: -1.5rem;
    width: 5rem;
    height: 5rem;
}

/* Features section */
.features-section {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    max-width: 36rem;
    margin: 0 auto;
    color: var(--text-gray);
}

.cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .cards-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background-color: var(--secondary);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.3);
}

.card-icon {
    height: 3rem;
    width: 3rem;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-gray);
}

/* Footer */
footer {
    padding: 1.5rem 1rem;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.875rem;
    border-top: 1px solid var(--border);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Animations */
@keyframes float-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

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

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.2;
    }
}

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

.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

.animate-float-medium {
    animation: float-medium 6s ease-in-out infinite;
}

.animate-float-fast {
    animation: float-fast 4s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spin-slow 10s linear infinite;
}

.animate-fade-in {
    animation: fade-in 1s ease-out forwards;
}

.animate-slide-up {
    animation: slide-up 1s ease-out forwards;
}

.animate-pulse-slow {
    animation: pulse-slow 5s ease-in-out infinite;
}

.animate-chart {
    animation: chart 10s linear infinite;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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