/* Stripe-inspired CSS for Dentem with Original Colors */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dentem Original Colors */
    --dentem-blue: #3679bb;
    --dentem-blue-dark: #2a69c6;
    --dentem-blue-light: #79bfe6;
    --dentem-purple: #6366f1;
    --dentem-gradient-start: #3679bb;
    --dentem-gradient-end: #93cfef;
    
    /* Neutral Colors */
    --stripe-gray-50: #f8fafc;
    --stripe-gray-100: #f1f5f9;
    --stripe-gray-200: #e2e8f0;
    --stripe-gray-300: #cbd5e1;
    --stripe-gray-400: #94a3b8;
    --stripe-gray-500: #64748b;
    --stripe-gray-600: #475569;
    --stripe-gray-700: #334155;
    --stripe-gray-800: #1e293b;
    --stripe-gray-900: #0f172a;
    --stripe-white: #ffffff;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--stripe-gray-800);
    background-color: var(--stripe-white);
    font-size: 16px;
}

/* Typography */
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1.1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-center { text-align: center; }
.text-gray-600 { color: var(--stripe-gray-600); }
.text-gray-700 { color: var(--stripe-gray-700); }
.text-gray-900 { color: var(--stripe-gray-900); }

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.section {
    padding: 5rem 0;
}

.section-sm {
    padding: 3rem 0;
}

/* Header with Stripe-style floating elements */
.header {
    color: white;
    background: radial-gradient(ellipse at top left, #0b8cd8, #2a69c6, #79bfe6, #ff8385, #6366f1);
    background-size: 400% 400%;
    position: relative;
    animation: change 12s ease-in-out infinite;
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@keyframes change {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Notification Banner */
.notification-banner {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 0.75rem 1.5rem;
    margin: 1rem auto 0;
    max-width: 300px;
    position: relative;
    z-index: 20;
    transition: all 0.2s ease;
}

.notification-banner:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    position: relative;
    z-index: 20;
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.9;
}

.logo img {
    height: 40px;
    margin-right: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
    z-index: 30;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile menu animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 20;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: white;
}

/* Hero Section with Floating Elements */
.hero {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 20;
    color: white;
    padding: 4rem 0;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* Floating UI Elements */
.floating-ui {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.floating-card.card-1 {
    top: 20%;
    right: 20%;
    width: 280px;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 60%;
    right: 40%;
    width: 240px;
    animation-delay: 2s;
}

.floating-card.card-3 {
    top: 10%;
    right: 60%;
    width: 200px;
    animation-delay: 4s;
}

/* Appointment Card */
.appointment-card {
    border-left: 4px solid var(--dentem-blue);
}

.appointment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.patient-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dentem-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.appointment-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--stripe-gray-900);
    margin: 0;
}

.appointment-info p {
    font-size: 0.875rem;
    color: var(--stripe-gray-600);
    margin: 0;
}

.appointment-time {
    background: var(--stripe-gray-100);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    color: var(--stripe-gray-700);
}

/* Dashboard Card */
.dashboard-card {
    background: var(--stripe-gray-50);
    border: 1px solid var(--stripe-gray-200);
}

.dashboard-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
}

.dashboard-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--stripe-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dentem-blue);
    margin-bottom: 0.25rem;
}

.metric-change {
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 500;
}

/* Patient Record Card */
.record-card {
    border: 1px solid var(--stripe-gray-200);
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--stripe-gray-900);
}

.record-status {
    background: var(--dentem-blue);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.record-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.record-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--stripe-gray-100);
    font-size: 0.875rem;
    color: var(--stripe-gray-600);
}

.record-item:last-child {
    border-bottom: none;
}

/* Dashboard Preview */
.dashboard-preview {
    text-align: center;
}

.dashboard-mockup {
    max-width: 1000px;
    margin: 0 auto;
}

/* Trust Signals */
.trust-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.trust-metric {
    text-align: center;
}

.metric-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dentem-blue);
    margin-bottom: 0.5rem;
}

.metric-label {
    color: var(--stripe-gray-600);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--stripe-white);
    border: 1px solid var(--stripe-gray-200);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--dentem-blue);
}

.product-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.product-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--stripe-gray-900);
}

.product-card p {
    color: var(--stripe-gray-600);
    line-height: 1.6;
}

/* Solutions Grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.solution-card {
    background: var(--stripe-white);
    border: 2px solid var(--stripe-gray-200);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-4px);
}

.solution-card.featured {
    border-color: var(--dentem-blue);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dentem-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.solution-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--stripe-gray-900);
}

.solution-card p {
    color: var(--stripe-gray-600);
    margin-bottom: 1.5rem;
}

.solution-features {
    list-style: none;
    margin-bottom: 2rem;
}

.solution-features li {
    padding: 0.5rem 0;
    color: var(--stripe-gray-700);
}

/* Feature Stats */
.feature-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dentem-blue);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--stripe-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Security Badges */
.security-badges {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.security-badge {
    background: var(--stripe-gray-100);
    color: var(--stripe-gray-700);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--stripe-gray-200);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--dentem-blue);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--dentem-blue-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Cards */
.card {
    background: var(--stripe-white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--stripe-gray-200);
}

.card:hover {
    transform: translateY(-4px);
}

.card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--dentem-blue), var(--dentem-blue-light));
    display: flex;
    align-items: center;
    justify-content: center;
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--stripe-gray-900);
}

.card p {
    color: var(--stripe-gray-600);
    line-height: 1.7;
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Feature Sections */
.feature-section {
    padding: 6rem 0;
}

.feature-section:nth-child(even) {
    background: var(--stripe-gray-50);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--stripe-gray-900);
    letter-spacing: -0.02em;
}

.feature-content p {
    font-size: 1.125rem;
    color: var(--stripe-gray-600);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.feature-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.feature-image:hover img {
    transform: scale(1.02);
}

/* Footer */
.footer {
    background: var(--stripe-gray-900);
    color: var(--stripe-gray-300);
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--stripe-gray-400);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.875rem;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--stripe-gray-800);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-brand p {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--stripe-gray-800);
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: var(--dentem-blue);
    transform: translateY(-2px);
}

.social-links img {
    width: 20px;
    height: 20px;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .floating-ui {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        z-index: 99;
    }
    
    /* Show mobile menu button */
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Hide navigation by default on mobile */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(11, 140, 216, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 25;
        padding: 2rem;
    }
    
    /* Show navigation when active */
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.125rem;
        padding: 1rem;
        width: 100%;
        text-align: center;
        border-radius: 8px;
        transition: background-color 0.2s ease;
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    .btn-group {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .trust-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    
    .solution-card.featured {
        transform: none;
    }
    
    .feature-stats {
        justify-content: center;
    }
    
    .security-badges {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .card {
        padding: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .feature-content h2 {
        font-size: 2rem;
    }
    
    .trust-logos {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }

    .feature-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .security-badges {
        flex-direction: column;
        align-items: center;
    }
}

/* Utility Classes */
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

.hidden-mobile {
    display: block;
}

@media (max-width: 768px) {
    .hidden-mobile {
        display: none;
    }
} 