/* =========================================
   Ideup Marketing - Design Tokens & Styles
   ========================================= */

:root {
    /* Base colors (Light Mode) */
    --clr-bg: #FFFFFF;
    --clr-bg-alt: #F8F9FA;
    --clr-text: #111827;
    --clr-text-muted: #4B5563;
    --clr-border: #E9ECEF;
    
    /* Brand Accent */
    --clr-accent: #6222CC;
    --clr-accent-hover: #4a189f;
    --clr-accent-shadow: rgba(98, 34, 204, 0.25);
    
    /* Layout Tokens */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2.5rem;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Dark Mode Tokens */
[data-theme="dark"] {
    --clr-bg: #0A0A0B;
    --clr-bg-alt: rgba(24, 24, 27, 0.4);
    --clr-text: #FFFFFF;
    --clr-text-muted: #A1A1AA;
    --clr-border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    transition: var(--transition);
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.text-gradient {
    background: linear-gradient(135deg, var(--clr-accent) 0%, #FF9950 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section { padding: 8rem 0; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-20 { margin-top: 5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pt-6 { padding-top: 1.5rem; }
.p-12 { padding: clamp(1.5rem, 5vw, 3rem); }
.text-center { text-align: center; }
.rounded-3xl { border-radius: var(--radius-xl); }
.border-t { border-top: 1px solid var(--clr-border); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    border-radius: 9999px; /* full pill */
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--clr-accent);
    color: #FFF;
    box-shadow: 0 4px 14px var(--clr-accent-shadow);
}
.btn-primary:hover {
    background-color: var(--clr-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 112, 1, 0.4);
}

.btn-secondary {
    background-color: var(--clr-bg-alt);
    color: var(--clr-text);
    border: 1px solid var(--clr-border);
}
.btn-secondary:hover {
    background-color: var(--clr-border);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--clr-text);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-btn:hover {
    background: var(--clr-bg-alt);
}

/* Background Glows */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
}
[data-theme="dark"] .bg-glow { opacity: 0.08; }
.top-glow {
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--clr-accent);
}
.bottom-glow {
    bottom: -200px;
    right: -100px;
    background: #0070F3;
}

/* Header & Nav */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background: rgba(var(--clr-bg), 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
.navbar.scrolled {
    border-bottom-color: var(--clr-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
[data-theme="dark"] .navbar.scrolled {
    background: rgba(10, 10, 11, 0.8);
}
.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 6rem;
}
.logo {
    text-decoration: none;
    color: var(--clr-text);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
}
.nav-links {
    display: none;
    gap: 2rem;
}
@media (min-width: 768px) {
    .nav-links { display: flex; }
}
.nav-links a {
    color: var(--clr-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}
.nav-links a:hover {
    color: var(--clr-text);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hero */
.hero {
    padding-top: 12rem;
    padding-bottom: 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background-color: var(--clr-bg-alt);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-accent);
    margin-bottom: 1.5rem;
}
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    max-width: 900px;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--clr-text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
}
@media (min-width: 768px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}
.stat-card {
    background: var(--clr-bg-alt);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--clr-accent);
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    color: var(--clr-text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Sections General */
.section-header {
    text-align: left;
    margin-bottom: 4rem;
    max-width: 600px;
}
.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.section-header p {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.bento-item {
    background: var(--clr-bg-alt);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 5vw, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}
.bento-large {
    grid-column: span 1;
    background: linear-gradient(135deg, rgba(255,112,1,0.05) 0%, rgba(255,112,1,0) 100%);
}
@media (min-width: 768px) {
    .bento-large { grid-column: span 2; }
    .bento-wide { grid-column: span 3; }
}
.bento-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
}
.bento-item p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.icon-box {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 112, 1, 0.1);
    color: var(--clr-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover Cards Generic */
.card-hover:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: var(--clr-accent);
}
[data-theme="dark"] .card-hover:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Projects Grid */
.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .project-grid { grid-template-columns: repeat(2, 1fr); }
}
.project-card {
    background: var(--clr-bg-alt);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}
.project-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--clr-accent);
    margin-bottom: 1rem;
}
.project-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.project-card p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

/* Testimonials */
.testim-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .testim-grid { grid-template-columns: repeat(3, 1fr); }
}
.testim-card {
    background: var(--clr-bg-alt);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}
.stars {
    color: #F59E0B;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Forms / Input */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-border);
    background: var(--clr-bg);
    color: var(--clr-text);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}
.form-input:focus {
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px rgba(255, 112, 1, 0.1);
}
.glass-panel {
    background: var(--clr-bg-alt);
    border: 1px solid var(--clr-border);
    backdrop-filter: blur(8px);
}

/* Footer */
.footer {
    border-top: 1px solid var(--clr-border);
    padding-top: 4rem;
    padding-bottom: 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}
.footer h4 {
    font-weight: 600;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.footer-links a {
    color: var(--clr-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--clr-text);
}

/* Utilities */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-4 { gap: 1rem; }
.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-auto { margin-top: auto; }
.flex-1 { flex: 1; }
.flex-align { display: flex; align-items: center; }

/* Team utilities */
.p-6 { padding: 1.5rem; }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: 9999px; }
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }
.object-cover { object-fit: cover; }
.bg-muted { background-color: var(--clr-text-muted); }
.text-bg { color: var(--clr-bg); }
.items-center { align-items: center; }
.justify-center { justify-content: center; display: flex; }
.text-xl { font-size: 1.25rem; }
.font-bold { font-weight: 700; }
.bg-alt { background-color: var(--clr-bg-alt); }
.border-glass { border-color: var(--clr-border); }

/* Scroll Anim Class (added by JS) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
