/* Trading App Landing Page - Custom CSS */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #1a4300;
    --accent-color: #00e676;
    --white-bg: #ffffff;
    --light-green-bg: #f0f7f0;
    --card-bg: #fafffe;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --border-color: #e0e0e0;
    --shadow-subtle: 0 2px 8px rgba(26, 67, 0, 0.08);
    --shadow-medium: 0 4px 16px rgba(26, 67, 0, 0.12);
    --shadow-glow: 0 0 20px rgba(26, 67, 0, 0.15);
    --crypto-green: #00e676;
    --crypto-red: #ff5252;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    background-color: var(--white-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Typography ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 3rem;
}

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

/* ===== Navigation Bar ===== */
.navbar {
    background-color: var(--white-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-subtle);
    animation: slideDown 0.5s ease;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Updated logo styling for Grynnex with bold G */
.navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 600;
    transition: transform 0.3s ease;
    letter-spacing: -0.5px;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.logo-g {
    font-weight: 800;
    font-size: 2rem;
    color: var(--primary-color);
    text-shadow: 7px 2px 4px rgba(26, 67, 0, 0.2);
}

.logo-rest {
    font-weight: 600;
    color: var(--text-dark);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
}

.navbar-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-link:hover {
    color: var(--primary-color);
}

.navbar-link:hover::after {
    width: 100%;
}

.navbar-cta {
    background-color: var(--primary-color);
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-subtle);
    display: inline-block;
}

.navbar-cta:hover {
    background-color: #0f5500;
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
    color: white;
}

/* Updated hamburger menu styling with animation */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.navbar-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.navbar-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.navbar-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(
        135deg,
        var(--white-bg) 0%,
        var(--light-green-bg) 100%
    );
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

/* Added crypto-themed background elements */
.crypto-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.crypto-chart-line {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 200px;
    height: 100px;
    background: linear-gradient(
        to right,
        transparent,
        var(--crypto-green),
        transparent
    );
    opacity: 0.1;
    clip-path: polygon(0 80%, 20% 60%, 40% 70%, 60% 40%, 80% 50%, 100% 20%);
    animation: chartPulse 3s ease-in-out infinite;
}

.crypto-candle {
    position: absolute;
    bottom: 30%;
    right: 15%;
    width: 150px;
    height: 120px;
    opacity: 0.08;
    animation: float 4s ease-in-out infinite;
}

.crypto-candle::before,
.crypto-candle::after {
    content: "";
    position: absolute;
    background: var(--primary-color);
}

.crypto-candle::before {
    width: 30px;
    height: 80px;
    left: 20px;
    top: 20px;
}

.crypto-candle::after {
    width: 30px;
    height: 60px;
    right: 20px;
    top: 40px;
    background: var(--crypto-green);
}

.crypto-ticker {
    position: absolute;
    top: 15%;
    right: 20%;
    background: rgba(0, 230, 118, 0.1);
    color: var(--crypto-green);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    animation: tickerFloat 5s ease-in-out infinite;
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.ticker-2 {
    top: auto;
    bottom: 25%;
    right: auto;
    left: 15%;
    animation-delay: 2s;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 300px;
}

.phone-mockup {
    position: relative;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(26, 67, 0, 0.2));
}

.phone-screen {
    width: 300px;
    height: auto;
    border-radius: 30px;
    box-shadow: var(--shadow-glow);
}

/* Added trading glow effect */
.trading-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: radial-gradient(
        circle,
        rgba(0, 230, 118, 0.2) 0%,
        transparent 70%
    );
    animation: glowPulse 3s ease-in-out infinite;
    pointer-events: none;
}

/* ===== Download Buttons ===== */
.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background-color: var(--white-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-subtle);
}

.btn-download:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.download-icon {
    width: 32px;
    height: 32px;
}

.download-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

.download-store {
    font-size: 1rem;
    font-weight: 600;
}

/* ===== Features Section ===== */
.features-section {
    padding: 100px 0;
    background-color: var(--white-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-subtle);
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--accent-color)
    );
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-description {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===== Screenshots Section ===== */
.screenshots-section {
    padding: 100px 0;
    background: linear-gradient(
        180deg,
        var(--white-bg) 0%,
        var(--light-green-bg) 100%
    );
}

.screenshots-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0;
    scroll-snap-type: x mandatory;
}

.screenshot-item {
    flex: 0 0 300px;
    scroll-snap-align: center;
    text-align: center;
}

.screenshot-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.screenshot-img:hover {
    transform: scale(1.05);
}

.screenshot-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* New How To Section with Video Carousel */
.how-to-section {
    padding: 100px 0;
    background-color: var(--white-bg);
}

.video-container {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    background-color: #000;
}

.tutorial-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-button {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(26, 67, 0, 0.4);
}

.play-button:hover {
    transform: scale(1.1);
    background: var(--accent-color);
}

.play-button svg {
    width: 32px;
    height: 32px;
    color: white;
    margin-left: 4px;
}

.carousel-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.carousel-nav {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--white-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-subtle);
}

.carousel-nav:hover {
    border-color: var(--primary-color);
    background: var(--light-green-bg);
    transform: scale(1.1);
}

.carousel-nav svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.carousel-track-container {
    flex: 1;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.4s ease;
}

.carousel-item {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 250px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-subtle);
}

.carousel-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}

.carousel-item.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--light-green-bg), var(--white-bg));
    box-shadow: var(--shadow-glow);
}

.carousel-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--accent-color)
    );
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.carousel-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.carousel-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.carousel-description {
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(
        180deg,
        var(--white-bg) 0%,
        var(--light-green-bg) 100%
    );
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--white-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-subtle);
}

.testimonial-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}

.testimonial-rating {
    color: #ffa500;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.author-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.author-role {
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(
        135deg,
        var(--light-green-bg) 0%,
        var(--white-bg) 100%
    );
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(26, 67, 0, 0.05) 0%,
        transparent 70%
    );
    animation: rotate 30s linear infinite;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.cta-description {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

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

/* ===== Footer ===== */
.footer {
    background-color: var(--card-bg);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

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

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: var(--light-green-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-gray);
}

/* ===== Page Content Styles ===== */
.page-content {
    padding: 100px 0 60px;
    background-color: var(--white-bg);
    min-height: calc(100vh - 200px);
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light-green-bg);
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease;
}

.page-header .lead {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

.page-header .text-muted {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.content-section {
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease;
    animation-fill-mode: both;
}

.content-section:nth-child(2) {
    animation-delay: 0.1s;
}

.content-section:nth-child(3) {
    animation-delay: 0.2s;
}

.content-section:nth-child(4) {
    animation-delay: 0.3s;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--light-green-bg);
}

.content-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.content-section p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
}

.content-section ul li {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.content-section ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.125rem;
}

.about-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-subtle);
}

.about-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}

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

.about-card p {
    margin-bottom: 0;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-subtle);
}

.btn-primary:hover {
    background-color: #0f5500;
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
    color: white;
}

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

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

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

/* Added crypto-themed animations */
@keyframes chartPulse {
    0%,
    100% {
        opacity: 0.1;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.15;
        transform: scaleY(1.1);
    }
}

@keyframes glowPulse {
    0%,
    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

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

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

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

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white-bg);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-medium);
        gap: 1rem;
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-toggle {
        display: flex;
    }

    /* Carousel responsive adjustments */
    .carousel-item {
        flex: 0 0 100%;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .btn-download {
        width: 100%;
        justify-content: center;
    }

    .logo-g {
        font-size: 2.5rem;
        line-height: 20px;
        padding: 1px;
    }

    .navbar-logo {
        font-size: 1.5rem;
    }
}
