/* ============================================
   OnlineSMSService — Homepage Styles
   Hand-crafted. No frameworks. No templates.
   ============================================ */

/* --- Design Tokens --- */
:root {
    --ink: #0f172a;
    --ink-soft: #334155;
    --ink-muted: #64748b;
    --ink-faint: #94a3b8;
    --surface: #ffffff;
    --surface-raised: #f8fafc;
    --surface-sunken: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --brand: #4f46e5;
    --brand-hover: #4338ca;
    --brand-light: #eef2ff;
    --brand-soft: #c7d2fe;
    --brand-dark: #3730a3;
    --emerald: #059669;
    --emerald-light: #ecfdf5;
    --amber: #d97706;
    --amber-light: #fffbeb;
    --rose: #e11d48;
    --rose-light: #fff1f2;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
    --font-display: 'Poppins', 'Inter', sans-serif;
}

/* --- Layout Container --- */
.hp-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== HERO ========== */
.hp-hero {
    padding: 80px 0 60px;
    background: var(--surface);
    overflow: hidden;
}

.hp-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    background: var(--brand-light);
    color: var(--brand);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
}

.hp-hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

.hp-hero h1 {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--ink);
    margin: 0 0 20px;
    letter-spacing: -0.03em;
}

.hp-hero h1 em {
    font-style: normal;
    color: var(--brand);
}

.hp-hero-desc {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--ink-soft);
    margin: 0 0 32px;
    max-width: 520px;
}

.hp-hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.hp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
}

.hp-btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 1px 2px rgba(79, 70, 229, 0.3), 0 0 0 0 rgba(79, 70, 229, 0);
}

.hp-btn-primary:hover {
    background: var(--brand-hover);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35), 0 0 0 0 rgba(79, 70, 229, 0);
    transform: translateY(-1px);
}

.hp-btn-secondary {
    background: transparent;
    color: var(--ink-soft);
    border: 1.5px solid var(--border);
}

.hp-btn-secondary:hover {
    border-color: var(--ink-muted);
    color: var(--ink);
    background: var(--surface-raised);
}

.hp-hero-meta {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.hp-hero-meta-item {
    display: flex;
    flex-direction: column;
}

.hp-hero-meta-val {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}

.hp-hero-meta-label {
    font-size: 0.82rem;
    color: var(--ink-muted);
    margin-top: 4px;
}

/* Hero Visual (right side) */
.hp-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-hero-visual img {
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: var(--radius-lg);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

/* Floating notification card on hero */
.hp-float-card {
    position: absolute;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float-gentle 6s ease-in-out infinite;
    border: 1px solid var(--border-light);
}

.hp-float-card-1 {
    bottom: 30px;
    left: -30px;
}

.hp-float-card-2 {
    top: 20px;
    right: -20px;
    animation-delay: -3s;
}

@keyframes float-gentle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.hp-float-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.hp-float-icon-green {
    background: var(--emerald-light);
    color: var(--emerald);
}

.hp-float-icon-brand {
    background: var(--brand-light);
    color: var(--brand);
}

.hp-float-text strong {
    display: block;
    font-size: 0.85rem;
    color: var(--ink);
}

.hp-float-text span {
    font-size: 0.78rem;
    color: var(--ink-muted);
}

/* ========== TRUST BAR ========== */
.hp-trust {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface-raised);
}

.hp-trust-inner {
    display: flex;
    align-items: center;
    gap: 48px;
    overflow: hidden;
}

.hp-trust-label {
    font-size: 0.78rem;
    color: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.hp-trust-logos {
    display: flex;
    align-items: center;
    gap: 40px;
    overflow: hidden;
    flex: 1;
}

.hp-trust-logo {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink-faint);
    white-space: nowrap;
    transition: color 0.2s;
    opacity: 0.5;
    user-select: none;
}

.hp-trust-logo:hover {
    color: var(--ink-muted);
    opacity: 0.8;
}

/* ========== METRICS STRIP ========== */
.hp-metrics {
    padding: 64px 0;
    background: var(--ink);
}

.hp-metrics-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.hp-metric {
    padding: 36px 24px;
    text-align: center;
    background: var(--ink);
}

.hp-metric-val {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.hp-metric-label {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
}

/* ========== PRODUCT SECTION ========== */
.hp-products {
    padding: 96px 0;
    background: var(--surface);
}

.hp-section-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.hp-section-title {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.hp-section-desc {
    font-size: 1.1rem;
    color: var(--ink-muted);
    margin: 0 0 48px;
    max-width: 560px;
}

.hp-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hp-product-card {
    padding: 32px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.25s ease;
    position: relative;
    background: var(--surface);
}

.hp-product-card:hover {
    border-color: var(--brand-soft);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.hp-product-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.hp-product-card-icon.t-indigo {
    background: var(--brand-light);
}

.hp-product-card-icon.t-emerald {
    background: var(--emerald-light);
}

.hp-product-card-icon.t-amber {
    background: var(--amber-light);
}

.hp-product-card-icon.t-rose {
    background: var(--rose-light);
}

.hp-product-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 10px;
}

.hp-product-card p {
    font-size: 0.92rem;
    color: var(--ink-muted);
    line-height: 1.6;
    margin: 0 0 20px;
}

.hp-product-card-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.hp-product-card-link:hover {
    gap: 8px;
}

.hp-product-card-link::after {
    content: '→';
}

/* ========== WHY US SECTION ========== */
.hp-why {
    padding: 96px 0;
    background: var(--surface-raised);
}

.hp-why-grid {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 80px;
    align-items: start;
}

.hp-why-sticky {
    position: sticky;
    top: 100px;
}

.hp-why-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hp-why-item {
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.hp-why-item:hover {
    border-color: var(--brand-soft);
    box-shadow: var(--shadow-sm);
}

.hp-why-item-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.hp-why-item-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.hp-why-item h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}

.hp-why-item p {
    font-size: 0.9rem;
    color: var(--ink-muted);
    line-height: 1.6;
    margin: 0;
    padding-left: 50px;
}

/* ========== API PREVIEW ========== */
.hp-api {
    padding: 96px 0;
    background: var(--ink);
    color: #fff;
    overflow: hidden;
}

.hp-api-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hp-api h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.hp-api-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin: 0 0 28px;
}

.hp-api-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hp-api-features li {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hp-api-features li::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(5, 150, 105, 0.2);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(5, 150, 105, 0.5);
}

.hp-api-visual img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

/* ========== TESTIMONIALS ========== */
.hp-testimonials {
    padding: 96px 0;
    background: var(--surface);
}

.hp-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hp-testimonial {
    padding: 32px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
}

.hp-testimonial:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--brand-soft);
}

.hp-testimonial-stars {
    color: var(--amber);
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.hp-testimonial-quote {
    font-size: 0.95rem;
    color: var(--ink-soft);
    line-height: 1.7;
    flex-grow: 1;
    margin: 0 0 24px;
}

.hp-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.hp-testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.hp-testimonial-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink);
}

.hp-testimonial-role {
    font-size: 0.8rem;
    color: var(--ink-muted);
}

/* ========== CTA BOTTOM ========== */
.hp-cta {
    padding: 80px 0;
    background: var(--brand);
    position: relative;
    overflow: hidden;
}

.hp-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.hp-cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.hp-cta-inner {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.hp-cta h2 {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.hp-cta p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 32px;
    line-height: 1.6;
}

.hp-cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hp-btn-white {
    background: #fff;
    color: var(--brand);
    font-weight: 700;
}

.hp-btn-white:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.hp-btn-ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.hp-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ========== CODE SNIPPET BLOCK ========== */
.hp-code-block {
    background: #1e293b;
    border-radius: var(--radius);
    padding: 24px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.82rem;
    line-height: 1.8;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
    white-space: pre;
    color: #e2e8f0;
}

.hp-code-block .c-keyword {
    color: #c084fc;
}

.hp-code-block .c-string {
    color: #6ee7b7;
}

.hp-code-block .c-comment {
    color: #64748b;
}

.hp-code-block .c-func {
    color: #93c5fd;
}

.hp-code-block .c-url {
    color: #fbbf24;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hp-hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hp-hero-visual {
        order: -1;
        max-width: 480px;
        margin: 0 auto;
    }

    .hp-hero h1 {
        font-size: 2.6rem;
    }

    .hp-why-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hp-why-sticky {
        position: static;
    }

    .hp-api-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hp-api-visual {
        order: -1;
    }

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

@media (max-width: 768px) {
    .hp-hero {
        padding: 48px 0 40px;
    }

    .hp-hero h1 {
        font-size: 2.1rem;
    }

    .hp-hero-desc {
        font-size: 1rem;
    }

    .hp-hero-meta {
        gap: 24px;
        flex-wrap: wrap;
    }

    .hp-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hp-btn {
        justify-content: center;
    }

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

    .hp-metric:last-child {
        grid-column: 1 / -1;
    }

    .hp-products-grid {
        grid-template-columns: 1fr;
    }

    .hp-testimonials-grid {
        grid-template-columns: 1fr;
    }

    .hp-section-title {
        font-size: 1.8rem;
    }

    .hp-cta h2 {
        font-size: 1.8rem;
    }

    .hp-trust-inner {
        flex-direction: column;
        gap: 16px;
    }

    .hp-trust-logos {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .hp-float-card {
        display: none;
    }
}

@media (max-width: 480px) {
    .hp-hero h1 {
        font-size: 1.75rem;
    }

    .hp-metrics-grid {
        grid-template-columns: 1fr;
    }

    .hp-metric {
        padding: 24px 16px;
    }

    .hp-metric:last-child {
        grid-column: auto;
    }
}