:root {
    --bg-color: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --success-color: #10b981;
    --border-color: #334155;
    --card-bg: rgba(30, 41, 59, 0.7);
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    transition: transform var(--transition-speed), background-color var(--transition-speed), box-shadow var(--transition-speed);
    cursor: pointer;
    border: none;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--text-primary);
}

.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
header {
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo-text span {
    color: var(--accent-color);
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    margin-top: -2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Sections */
section {
    padding: 6rem 0;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 8rem;
    /* Account for fixed header */
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(15, 23, 42, 0) 70%);
    z-index: -1;
    border-radius: 50%;
    filter: blur(80px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: fadeInLeft 1s ease-out;
}

/* Phone Mockup Styling (Hero) */
.hero-image {
    display: flex;
    justify-content: center;
    animation: fadeInRight 1s ease-out;
    perspective: 1000px;
}

.hero-phone-container {
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-phone-container:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.hero-phone-frame {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.1);
    position: relative;
    border: 2px solid #333;
}

.hero-phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Notch simulated */
.hero-phone-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: #000;
    border-radius: 0 0 10px 10px;
    z-index: 10;
}

.app-ui-header {
    padding: 40px 20px 20px 20px;
    background: linear-gradient(to right, #1e293b, #0f172a);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
}

.app-ui-content {
    padding: 20px;
    flex: 1;
    overflow-y: hidden;
    /* Simulated */
}

.ui-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

.ui-card.active {
    border-color: var(--accent-color);
    background: rgba(59, 130, 246, 0.1);
}

.ui-icon-box {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

.ui-icon-box.orange {
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
}

.ui-icon-box.green {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.ui-text {
    flex: 1;
}

.ui-text h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    width: 100%;
}

.progress-bar .fill {
    height: 100%;
    background: var(--success-color);
    border-radius: 2px;
}

/* App Grid with Phones */
.products-grid-phones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Slightly narrower fitting */
    gap: 3rem;
    margin-top: 3rem;
}

.phone-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* No Card Background, just the phone standing */
    transition: transform var(--transition-speed);
}

.phone-card:hover {
    transform: translateY(-10px);
}

.phone-card:hover .phone-mockup-small {
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
    border-color: var(--accent-color);
}

.phone-mockup-small {
    width: 220px;
    height: 440px;
    background: #000;
    border-radius: 30px;
    border: 4px solid #334155;
    padding: 8px;
    /* Bezel */
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: all var(--transition-speed);
    margin-bottom: 1.5rem;
}

.phone-screen-small {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Status Bar / Notch fake */
.phone-mockup-small::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 15px;
    background: #111;
    border-radius: 0 0 8px 8px;
    z-index: 5;
}

/* Tablet Mockup Styling */
.tablet-mockup-small {
    width: 440px;
    height: 320px;
    background: #000;
    border-radius: 20px;
    border: 6px solid #334155;
    padding: 10px;
    /* Bezel */
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    transition: all var(--transition-speed);
    margin-bottom: 1.5rem;
}

.tablet-mockup-small.portrait {
    width: 320px;
    height: 440px;
}

.phone-card:hover .tablet-mockup-small {
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.2);
    border-color: var(--accent-color);
}

.tablet-screen-small {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: block;
    /* Images are block */
}

/* Tablet Camera fake (on the side for landscape) */
.tablet-mockup-small::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 4px;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #333;
    border-radius: 50%;
    z-index: 5;
}

/* Tablet Camera fake (on top for portrait) */
.tablet-mockup-small.portrait::after {
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
}

.screen-header {
    height: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
}

.screen-header.pl {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.screen-header.el {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
}

.screen-header.hv {
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
}

.screen-header.fh {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.screen-header.ba {
    background: rgba(236, 72, 153, 0.2);
    color: #f472b6;
}

.screen-header.ge {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
}

.screen-body {
    flex: 1;
    background: #0f172a;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.screen-body h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.mini-btn {
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    color: white;
}

.app-details {
    text-align: center;
}

.app-details h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.app-details p {
    font-size: 0.9rem;
}

/* Features Section (Generic) */
.features-section {
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.feature-item {
    flex: 1 1 300px;
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

/* Featured Points Section (Alternating Image + Text) */
.feature-point {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.feature-point:last-child {
    margin-bottom: 0;
}

.feature-point.reverse {
    direction: rtl;
    /* Flip the grid */
}

.feature-point.reverse>* {
    direction: ltr;
    /* Reset text direction inside items */
}

.feature-point-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-point-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.feature-point-content ul li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.feature-point-image {
    display: flex;
    justify-content: center;
}

/* Footer */
footer {
    background-color: #020617;
    padding: 4rem 0 2rem 0;
    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(--text-primary);
    margin-bottom: 0.2rem;
    display: block;
}

.footer-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: var(--text-secondary);
}

.footer-links ul li a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-grid,
    .feature-point {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature-point.reverse {
        direction: ltr;
        /* Reset on mobile so image is always bottom or top consistent */
    }

    .hero-content,
    .feature-point-content {
        order: 1;
    }

    .hero-image,
    .feature-point-image {
        order: 2;
        margin-top: 2rem;
        transform: none;
        /* Disable 3D tilt on mobile */
    }

    .hero-phone-container {
        transform: rotateY(0deg) rotateX(0deg);
    }

    .nav-links {
        display: none;
    }

    .tablet-mockup-small {
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
    }

    .tablet-mockup-small.portrait {
        aspect-ratio: 3/4;
    }
}