/* Theme variables */
:root[data-theme="light"] {
    --blue: #2196F3;
    --orange: #FF9800;
    --green: #4CAF50;
    --gold: #FFC107;
    --text-color: #2C3E50;
    --light-bg: #FFFFFF;
    --lighter-bg: #F5F7FA;
    --box-bg: #FFFFFF;
    --text-on-light: #2C3E50;
    --toggle-bg: #e4e4e4;
    --toggle-hover: #d4d4d4;
}

:root[data-theme="dark"] {
    --blue: #07B9CC;
    --orange: #ED7F10;
    --green: #1DB954;
    --gold: #F5CF29;
    --text-color: rgba(255, 255, 255, 0.9);
    --light-bg: #121212;
    --lighter-bg: #1a1a1a;
    --box-bg: #1a1a1a;
    --text-on-light: rgba(255, 255, 255, 0.9);
    --toggle-bg: #2c2c2c;
    --toggle-hover: #3c3c3c;
}

/* Theme toggle button styles */
.theme-toggle {
    background: var(--toggle-bg);
    border: none;
    padding: 10px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-color);
    margin-left: 1rem;
}

.theme-toggle:hover {
    background: var(--toggle-hover);
    transform: scale(1.1);
}

.theme-toggle i {
    font-size: 1.2rem;
}

/* Updated footer styles to accommodate the toggle */
.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Transition for theme switching */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background: var(--light-bg);
}

.header {
    background: var(--lighter-bg);
    color: var(--text-color);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

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

.header-text {
    flex: 1;
}

.header-device {
    flex: 1;
    max-width: 600px;
}

@media (max-width: 968px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-device {
        width: 100%;
        max-width: 500px;
        margin: 2rem auto 0;
    }
}

.header h1 {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0;
    background: linear-gradient(135deg, var(--orange), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 300% 300%;
}

.header h1 .small-cap {
    font-size: 0.756em;
    vertical-align: baseline;
    font-weight: 900;
}

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

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

@media (max-width: 768px) {
    .features {
        grid-template-columns: 1fr;
    }
    .header h1 {
        font-size: 3rem;
    }
}

.feature {
    text-align: center;
    padding: 0;
    border-radius: 12px;
    transition: transform 0.2s;
    position: relative;
    background: var(--box-bg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    color: var(--text-color);
    border: 1px solid rgba(0,0,0,0.1);
    border-top: 4px solid;
}

.feature:nth-child(1) { border-top-color: var(--blue); }
.feature:nth-child(2) { border-top-color: var(--orange); }
.feature:nth-child(3) { border-top-color: var(--green); }
.feature:nth-child(4) { border-top-color: var(--gold); }

.feature h2 {
    margin: 0;
    padding: 1.5rem;
    background: transparent;
}

.feature p {
    padding: 1.5rem;
    padding-top: 0;
    margin: 0;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.tagline {
    font-size: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-color);
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--orange), var(--gold));
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    margin: 1rem 0;
    transition: all 0.3s;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.devices {
    margin-top: 1rem;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* iPad Frame Styles */
.ipad-frame {
    position: relative;
    width: 100%;
    height: 100%;
}

.ipad-frame svg {
    width: 100%;
    height: auto;
    display: block;
}

.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 4rem 0;
    padding: 2rem;
    background: var(--lighter-bg);
    border-radius: 16px;
    color: var(--text-color);
    border: 1px solid rgba(0,0,0,0.1);
}

.comparison-item {
    text-align: center;
}

.comparison-item img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.feature-list li {
    margin: 1rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-size: 1.5em;
}

.feature-list li:nth-child(1)::before { color: var(--blue); }
.feature-list li:nth-child(2)::before { color: var(--orange); }
.feature-list li:nth-child(3)::before { color: var(--green); }
.feature-list li:nth-child(4)::before { color: var(--gold); }

.footer {
    background: var(--lighter-bg);
    color: var(--text-color);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.footer a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s;
}

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

@media (max-width: 768px) {
    .comparison {
        grid-template-columns: 1fr;
    }
}