/* Font Face - Nasalization (Logo) */
@font-face {
    font-family: 'Nasalization';
    src: url('assets/logos/Nasalization Rg.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

/* Font Face - Sharp Grotesk */
@font-face {
    font-family: 'Sharp Grotesk';
    src: url('assets/fonts/SharpGrotesk-Medium20.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Sharp Grotesk';
    src: url('assets/fonts/SharpGrotesk-Book20.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Sharp Grotesk';
    src: url('assets/fonts/SharpGrotesk-Bold20.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

/* Variables */
:root {
    --font-heading: 'Sharp Grotesk', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
    /* Fallback if not provided, or system font */

    --color-bg: #F8F7F5;
    --color-text-main: #111111;
    --color-text-sub: #666666;
    --color-primary: #111111;
    --color-primary-hover: #333333;
    --color-accent: #c5ed36;
    --color-accent-hover: #b3d82f;
    --color-border: #e5e5e5;

    --radius-sm: 12px;
    --radius-md: 14px;
    --radius-lg: 24px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-text-main);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    padding: 14px 0;
    position: sticky;
    top: 0;
    background: rgba(248, 247, 245, 0.95);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    height: 28px;
    width: auto;
}

.logo-text {
    font-family: 'Nasalization', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--color-text-main);
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mobile-cta {
    display: none;
}

/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: var(--font-heading);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-sub);
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-text-main);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-text-main);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-1px);
}

/* Hero */
.hero {
    padding: 80px 0 100px;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-text p {
    font-size: 20px;
    color: var(--color-text-sub);
    margin-bottom: 32px;
    max-width: 90%;
}

.new-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-text-main);
    color: var(--color-accent);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.new-badge::after {
    content: '→';
    font-size: 14px;
}

.hero-form {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.hero-form input {
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    flex: 1;
    min-width: 240px;
    font-size: 16px;
}

.small-text {
    font-size: 14px;
    color: #888;
    margin-top: 8px;
}

/* Workflow Visual */
.workflow-visual {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    align-items: center;
}

@media (min-width: 900px) {
    .workflow-visual {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }

    .connector-arrow {
        transform: rotate(0deg);
        align-self: center;
        margin-top: 28px;
        color: #e0e0e0;
    }
}

.node-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.node-label {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.node-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tool-badge {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 160px;
}

.tool-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: var(--color-border);
}

.ai-container .tool-badge {
    background: linear-gradient(135deg, #fdfbfb 0%, #f7f7f7 100%);
}

.tool-icon {
    font-size: 18px;
}

.sequence-nodes {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.email-node {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    width: 200px;
    position: relative;
    z-index: 1;
}

.email-node::before {
    content: attr(data-day);
    position: absolute;
    right: 12px;
    font-size: 10px;
    color: #aaa;
    font-weight: 600;
}

.email-icon {
    width: 24px;
    height: 24px;
    background: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 8px;
    /* overly small text as icon placeholder */
}

.connector-line {
    width: 2px;
    height: 16px;
    background: #eaeaea;
    margin-left: 24px;
    /* Align with icon center roughly */
}

.connector-arrow {
    font-size: 24px;
    color: #e0e0e0;
    transform: rotate(90deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .workflow-visual {
        padding: 24px;
    }
}


/* =============================================
   FEATURES SECTION
   ============================================= */
.features {
    padding: 100px 0;
}

.features h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 32px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--color-text-sub);
    line-height: 1.6;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
    padding: 100px 0;
    background: var(--color-primary);
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
    font-size: 40px;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

.cta-section .btn-primary {
    background: var(--color-accent);
    color: var(--color-text-main);
}

.cta-section .btn-primary:hover {
    background: var(--color-accent-hover);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    padding: 80px 0 40px;
    background: #111;
    color: #fff;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    height: 32px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: #888;
    font-size: 14px;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-col a {
    display: block;
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid #333;
    text-align: center;
}

.footer-bottom p {
    color: #666;
    font-size: 14px;
}

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    background: #111;
    color: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: 400px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    background: #10b981;
}

.toast-error {
    background: #ef4444;
}

.toast-info {
    background: #3b82f6;
}

.toast-icon {
    font-size: 18px;
    font-weight: bold;
}

.toast-message {
    font-size: 14px;
    font-weight: 500;
}

/* =============================================
   LOADING SPINNER
   ============================================= */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =============================================
   MODAL
   ============================================= */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.open .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: #e0e0e0;
}

.modal-content h2 {
    margin-bottom: 8px;
}

.modal-content > p {
    color: var(--color-text-sub);
    margin-bottom: 24px;
}

/* =============================================
   FORMS
   ============================================= */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--color-text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.btn-full {
    width: 100%;
}

/* Form submitted state */
.hero-form.submitted input {
    border-color: #10b981;
    background: #f0fdf4;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        max-width: 100%;
    }

    .hero-form {
        justify-content: center;
    }

    .features h2 {
        font-size: 32px;
    }

    .cta-section h2 {
        font-size: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-brand {
        max-width: 100%;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .desktop-cta {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 200;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        padding: 16px 0;
        font-size: 18px;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links .mobile-cta {
        display: inline-flex;
        margin-top: 24px;
        text-align: center;
        border-bottom: none;
    }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 150;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-overlay.open {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 600px) {
    .hero-text h1 {
        font-size: 36px;
    }

    .hero-form {
        flex-direction: column;
    }

    .hero-form input {
        min-width: 100%;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}