/* OmniTools Website - Main Stylesheet */

:root {
    --color-white: #FFFFFF;
    --color-grey-50: #F9FAFB;
    --color-grey-100: #F3F4F6;
    --color-grey-200: #E5E7EB;
    --color-grey-400: #9CA3AF;
    --color-grey-500: #6B7280;
    --color-grey-600: #4B5563;
    --color-grey-700: #374151;
    --color-grey-800: #1F2937;
    --color-grey-900: #111827;
    --color-peach-light: #FEE2D6;
    --color-peach: #FFCBB8;
    --color-pink-light: #FED7E2;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --container-max: 1200px;
    --container-padding: 1.5rem;
    --nav-height: 70px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-grey-700);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-grey-800);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-grey-100);
    z-index: 1000;
    transition: box-shadow var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-grey-800);
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-grey-600);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-grey-700);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--color-grey-800);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-white);
    background: var(--color-grey-700);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-btn:hover {
    background: var(--color-grey-800);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-grey-700);
    transition: all var(--transition-fast);
}

/* Hero */
.hero {
    padding: calc(var(--nav-height) + 4rem) 0 6rem;
    background: var(--color-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero-title {
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    color: var(--color-grey-500);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-grey-500);
    margin-bottom: 2.5rem;
    max-width: 440px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn-primary {
    color: var(--color-white);
    background: var(--color-grey-700);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--color-grey-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    color: var(--color-grey-700);
    background: transparent;
    border: 1.5px solid var(--color-grey-200);
}

.btn-secondary:hover {
    border-color: var(--color-grey-400);
    background: var(--color-grey-50);
}

/* Phone Mockup */
.hero-mockup {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.phone-frame {
    width: 280px;
    height: 580px;
    background: var(--color-grey-800);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.15), 0 30px 60px -30px rgba(0, 0, 0, 0.2), inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.4s ease;
}

.phone-frame:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--color-white);
    border-radius: 32px;
    overflow: hidden;
}

.mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-grey-800);
}

.mock-icons {
    display: flex;
    gap: 0.25rem;
    font-size: 0.625rem;
}

.mock-app-header {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mock-greeting {
    font-size: 0.75rem;
    color: var(--color-grey-400);
}

.mock-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-grey-800);
}

.mock-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 1rem 1.25rem;
}

.mock-tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
    background: var(--color-grey-50);
    border-radius: var(--radius-md);
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--color-grey-600);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: var(--delay);
    opacity: 0;
}

.mock-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
}

.mock-icon.calc {
    background: linear-gradient(135deg, #818CF8, #6366F1);
}

.mock-icon.finance {
    background: linear-gradient(135deg, #34D399, #10B981);
}

.mock-icon.convert {
    background: linear-gradient(135deg, #F472B6, #EC4899);
}

.mock-icon.health {
    background: linear-gradient(135deg, #FB7185, #F43F5E);
}

.mock-icon.notes {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
}

.mock-icon.timer {
    background: linear-gradient(135deg, #60A5FA, #3B82F6);
}

/* Features */
.features {
    padding: 6rem 0;
    background: var(--color-grey-50);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-grey-500);
    max-width: 500px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-grey-100);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-title {
    font-family: var(--font-serif);
    margin-bottom: 0.75rem;
    color: var(--color-grey-800);
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--color-grey-500);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-list li {
    padding: 0.375rem 0.875rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-grey-600);
    background: var(--color-grey-50);
    border-radius: 100px;
}

/* Highlights */
.highlights {
    padding: 6rem 0;
    background: var(--color-white);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.highlight-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.highlight-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-icon svg {
    width: 100%;
    height: 100%;
}

.highlight-title {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
    color: var(--color-grey-800);
}

.highlight-desc {
    font-size: 0.95rem;
    color: var(--color-grey-500);
    line-height: 1.7;
}

/* Download */
.download {
    padding: 5rem 0;
    background: var(--color-grey-50);
}

.download-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.download-title {
    margin-bottom: 1rem;
}

.download-subtitle {
    font-size: 1.125rem;
    color: var(--color-grey-500);
    margin-bottom: 2rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-white);
    background: var(--color-grey-800);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.download-btn svg {
    width: 24px;
    height: 24px;
}

.download-btn:hover {
    background: var(--color-grey-900);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Footer */
.footer {
    position: relative;
    padding: 4rem 0 2rem;
    background: var(--color-white);
    overflow: hidden;
}

.footer-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(180deg, transparent 0%, var(--color-peach-light) 40%, var(--color-peach) 70%, var(--color-pink-light) 100%);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(55, 65, 81, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-grey-800);
    margin-bottom: 0.75rem;
}

.footer-logo .logo-icon {
    width: 36px;
    height: 36px;
}

.footer-tagline {
    font-size: 0.95rem;
    color: var(--color-grey-500);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-grey-700);
    margin-bottom: 1rem;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-column a {
    font-size: 0.95rem;
    color: var(--color-grey-500);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--color-grey-800);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-grey-100);
    color: var(--color-grey-600);
    transition: all var(--transition-fast);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: var(--color-grey-700);
    color: var(--color-white);
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--color-grey-500);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.4s;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    transition-delay: var(--delay, 0s);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    :root {
        --container-padding: 2rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-links {
        justify-items: center;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    :root {
        --container-padding: 1.25rem;
        --nav-height: 64px;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        background: var(--color-white);
        transform: translateX(100%);
        transition: transform var(--transition-base);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-link,
    .nav-menu .nav-btn {
        font-size: 1.25rem;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: calc(var(--nav-height) + 2rem) 0 4rem;
        min-height: auto;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .phone-frame {
        width: 240px;
        height: 500px;
        border-radius: 32px;
        padding: 10px;
    }

    .phone-screen {
        border-radius: 26px;
    }

    .features,
    .highlights {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .highlight-card {
        padding: 1.5rem 1rem;
    }

    .highlight-icon {
        width: 64px;
        height: 64px;
    }

    .download {
        padding: 4rem 0;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
    }

    .footer {
        padding: 3rem 0 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-gradient {
        height: 400px;
    }
}

@media (max-width: 375px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .phone-frame {
        width: 200px;
        height: 420px;
    }

    .mock-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

:focus-visible {
    outline: 2px solid var(--color-grey-700);
    outline-offset: 2px;
}

::selection {
    background: var(--color-peach);
    color: var(--color-grey-800);
}