:root {
    --primary: #c33332;
    --primary-dark: #a12a29;
    --secondary: #f49f1c;
    --bg-dark: #0a0a0a;
    --bg-card: rgba(20, 20, 20, 0.6);
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --accent: #f49f1c;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

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

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

section {
    padding: 6rem 0; /* Reduced from 10rem */
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    color: #ffffff; /* Explicitly white */
}

.logo img {
    height: 38px;
    filter: drop-shadow(0 0 8px rgba(195, 51, 50, 0.3));
}

.logo span {
    color: var(--secondary); /* The 'GPS' part in Yellow/Orange */
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

.btn-login {
    border: 1px solid var(--glass-border);
    background: var(--glass);
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff !important; /* Force white, no more blue */
    transition: 0.3s;
}

.btn-login:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Hero Section - Redesigned */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    background-color: #000;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.hero-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(244, 159, 28, 0.1);
    border: 1px solid rgba(244, 159, 28, 0.2);
    border-radius: 100px;
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem); /* Reduced from 5.5rem */
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero h1 span {
    display: block;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 3.5rem;
    line-height: 1.7;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 1.2rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: 0.4s;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(195, 51, 50, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(195, 51, 50, 0.4);
    background: #d43b3a;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 1.2rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.4s;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* App Section */
.app-section {
    background: linear-gradient(to bottom, #000, #0a0a0a);
    overflow: hidden;
}

.app-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.app-feature-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.app-feature-item i {
    width: 48px;
    height: 48px;
    background: rgba(244, 159, 28, 0.1);
    border: 1px solid rgba(244, 159, 28, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    flex-shrink: 0;
}

.app-feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.app-feature-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.download-btns {
    display: flex;
    gap: 1.5rem;
    margin-top: 4rem;
}

.btn-store {
    background: #111;
    border: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-store:hover {
    background: #222;
    border-color: #fff;
    transform: translateY(-3px);
}

.app-visual {
    position: relative;
    height: 480px; /* Reduced from 600px */
}

.phone-mockup-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: absolute;
    width: 210px; /* Reduced from 280px */
    border-radius: 24px;
    border: 6px solid #1a1a1a;
    background: #000;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
    transition: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.phone-mockup img {
    width: 100%;
    display: block;
}

.phone-mockup.main {
    z-index: 10;
    transform: scale(1);
}

.phone-mockup.side {
    z-index: 5;
    opacity: 0.4;
    filter: blur(2px);
}

.phone-mockup.left {
    transform: translateX(-120px) scale(0.85) rotate(-10deg);
}

.phone-mockup.right {
    transform: translateX(120px) scale(0.85) rotate(10deg);
}

.app-visual:hover .phone-mockup.left {
    transform: translateX(-180px) scale(0.9) rotate(-15deg);
    opacity: 0.6;
}

.app-visual:hover .phone-mockup.right {
    transform: translateX(180px) scale(0.9) rotate(15deg);
    opacity: 0.6;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Force 4 columns on desktop */
    gap: 1.5rem; /* Slightly reduced gap to fit better */
}

.feature-card {
    background: var(--bg-card);
    padding: 1.5rem; /* Reduced padding to give more space for text */
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: 0.4s;
    text-align: center;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevent text leakage */
}

.feature-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    background: rgba(30, 30, 30, 0.8);
}

.feature-icon {
    width: 60px; /* Slightly smaller to fit square better */
    height: 60px;
    background: rgba(195, 51, 50, 0.05);
    border: 1px solid rgba(195, 51, 50, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1rem;
    color: var(--primary);
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal].active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .app-content { grid-template-columns: 1fr; text-align: center; gap: 4rem; }
    .app-feature-item { flex-direction: column; align-items: center; }
    .app-visual { height: 500px; margin-top: 2rem; }
    .phone-mockup { width: 220px; }
    .phone-mockup.left { transform: translateX(-100px) scale(0.85) rotate(-10deg); }
    .phone-mockup.right { transform: translateX(100px) scale(0.85) rotate(10deg); }
    .download-btns { justify-content: center; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.1rem; }
    .cta-group { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
    .features-grid { grid-template-columns: 1fr; }
}
