/* ============================================
   DayMark Landing Pages – Shared Styles
   ============================================ */

/* --- Base & Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fff;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
    border-bottom-color: #e5e7eb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.0625rem;
}

.nav-logo {
    width: 28px;
    height: 28px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: #4b5563;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-cta {
    background: #c0392b !important;
    color: #fff !important;
    padding: 7px 18px !important;
    border-radius: 8px;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    transition: background 0.2s !important;
}

.nav-cta:hover {
    background: #a93226 !important;
    color: #fff !important;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #374151;
    border-radius: 1px;
    position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: #374151;
    border-radius: 1px;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

/* --- Hero (Index Page) --- */
.hero {
    padding: 70px 0 60px;
    text-align: center;
    background-color: #f9fafb;
    position: relative;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-dots {
    position: absolute;
    inset: -40% 0;
    pointer-events: none;
    will-change: transform;
    background-image: radial-gradient(#d1d5db 1px, transparent 1px);
    background-size: 20px 20px;
}

.hero-logo {
    width: 88px;
    height: 88px;
    margin: 0 auto 28px;
    border-radius: 22px;
    box-shadow: 0 6px 24px rgba(192, 57, 43, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.hero h1 {
    font-size: 3.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #d35400, #c0392b 50%, #a93226);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.375rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 1.0625rem;
    color: #6b7280;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Hero (Legal Pages) --- */
.hero-legal {
    padding: 48px 0 40px;
    text-align: center;
    background-color: #f9fafb;
    background-image: radial-gradient(#d1d5db 1px, transparent 1px);
    background-size: 20px 20px;
}

.hero-legal h1 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #d35400, #c0392b 50%, #a93226);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.hero-legal p {
    font-size: 1rem;
    color: #6b7280;
}

/* --- Sections --- */
.section {
    padding: 72px 0;
}

.section-alt {
    background: #f9fafb;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.01em;
    margin-bottom: 0;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #d35400, #c0392b);
    border-radius: 2px;
    margin-top: 14px;
}

.section-title-center {
    text-align: center;
}

.section-title-center::after {
    margin-left: auto;
    margin-right: auto;
}

.section-text {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.8;
    margin-top: 16px;
    max-width: 720px;
}

.section-text strong {
    color: #1a1a1a;
}

.section-text a {
    color: #c0392b;
    text-decoration: none;
    font-weight: 600;
}

.section-text a:hover {
    text-decoration: underline;
}

.brand-text {
    background: linear-gradient(135deg, #d35400, #c0392b 50%, #a93226);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Feature Cards --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 36px;
}

.feature-card {
    background: #fff;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fef2f2;
    border-radius: 10px;
    margin-bottom: 16px;
    color: #c0392b;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
}

/* --- Stats --- */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 36px;
}

.stat-item {
    text-align: center;
    padding: 28px 36px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    flex: 1;
    min-width: 180px;
    max-width: 280px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: #1a1a1a;
    display: block;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 6px;
    font-weight: 500;
}

/* --- Video --- */
.video-wrap {
    max-width: 950px;
    margin: 32px auto 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.video-wrap iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: none;
}

/* --- Timeline (How It Works) --- */
.timeline {
    margin-top: 36px;
    position: relative;
    padding-left: 52px;
    max-width: 640px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: #e5e7eb;
}

.timeline-step {
    position: relative;
    padding-bottom: 32px;
}

.timeline-step:last-child {
    padding-bottom: 0;
}

.timeline-num {
    position: absolute;
    left: -52px;
    top: 0;
    width: 32px;
    height: 32px;
    background: #c0392b;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    z-index: 1;
}

.timeline-step h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    padding-top: 4px;
}

.timeline-step p {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.6;
}

/* --- Use Cases (Perfect For) --- */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 36px;
}

.use-case-card {
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

.use-case-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    border-radius: 8px;
    margin-bottom: 12px;
    color: #059669;
}

.use-case-icon svg {
    width: 18px;
    height: 18px;
}

.use-case-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.use-case-card p {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
}

/* --- CTA --- */
.cta {
    padding: 72px 0;
    background: #111827;
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.cta-sub {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin-bottom: 28px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.cta-btn-primary {
    background: #c0392b;
    color: #fff;
}

.cta-btn-primary:hover {
    background: #d35400;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.35);
}

.cta-btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
}

/* --- Footer --- */
.footer {
    background: #111827;
    padding: 56px 0 32px;
    color: #9ca3af;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #1f2937;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.footer-brand img {
    width: 24px;
    height: 24px;
}

.footer-brand span {
    font-weight: 700;
    color: #fff;
    font-size: 0.9375rem;
}

.footer-desc {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #6b7280;
    max-width: 320px;
}

.footer h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #d1d5db;
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 24px;
    text-align: center;
    font-size: 0.75rem;
    color: #6b7280;
}

/* --- Legal Pages --- */
.legal-wrap {
    padding: 40px 0 72px;
}

.legal-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 80px;
}

.legal-toc h3 {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    margin-bottom: 12px;
}

.legal-toc ol {
    list-style: none;
    padding: 0;
}

.legal-toc li {
    margin-bottom: 6px;
}

.legal-toc a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.8125rem;
    line-height: 1.4;
    transition: color 0.2s;
    display: block;
    padding: 2px 0;
}

.legal-toc a:hover {
    color: #c0392b;
}

.legal-content {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 40px;
}

.legal-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 0.875rem;
    color: #6b7280;
}

.legal-meta strong {
    color: #374151;
}

.legal-meta a {
    color: #c0392b;
    text-decoration: none;
}

.highlight-box {
    background: #fffbeb;
    border-left: 3px solid #c0392b;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #4b5563;
}

.legal-content h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 36px;
    margin-bottom: 12px;
    padding-top: 12px;
    scroll-margin-top: 80px;
}

.legal-content h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 20px;
    margin-bottom: 8px;
}

.legal-content p {
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 10px;
}

.legal-content ul,
.legal-content ol {
    margin: 10px 0 10px 20px;
    color: #4b5563;
}

.legal-content li {
    margin-bottom: 5px;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.legal-content a {
    color: #c0392b;
    text-decoration: none;
    font-weight: 500;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* --- Scroll Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive: Tablets --- */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Responsive: Mobile --- */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid #e5e7eb;
        padding: 12px 24px 16px;
        gap: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    }

    .hero {
        padding: 56px 0 40px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-logo {
        width: 72px;
        height: 72px;
    }

    .section {
        padding: 48px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .features-grid,
    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .stats-row {
        flex-direction: column;
        align-items: stretch;
    }

    .stat-item {
        max-width: none;
    }

    .cta {
        padding: 48px 0;
    }

    .cta h2 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .legal-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .legal-toc {
        position: static;
        border-bottom: 1px solid #e5e7eb;
        padding-bottom: 16px;
        margin-bottom: 24px;
    }

    .legal-content {
        padding: 24px;
    }

    .hero-legal {
        padding: 36px 0 28px;
    }

    .hero-legal h1 {
        font-size: 1.75rem;
    }

    .video-wrap {
        border-radius: 8px;
    }

    .timeline {
        padding-left: 44px;
    }

    .timeline-num {
        left: -44px;
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .timeline::before {
        left: 13px;
    }
}

/* --- Responsive: Small --- */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nav-inner {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.375rem;
    }

    .legal-content {
        padding: 16px;
    }
}
