:root {
    --bg-color: #0B0F19;
    --text-primary: #F0F9FF;
    --text-secondary: #94A3B8;
    --accent-primary: #0EA5E9;
    --accent-secondary: #38BDF8;
    --gradient-linear: linear-gradient(135deg, #0EA5E9 0%, #38BDF8 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --container-max: 1200px;
    --font-heading: 'Figtree', sans-serif;
    --font-body: 'Noto Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(11, 15, 25, 0.8);
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-linear);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-secondary);
}

/* Hero Section */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 6rem 0 4rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    max-width: 800px;
}

.gradient-text {
    background: var(--gradient-linear);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn.primary {
    background: var(--gradient-linear);
    color: white;
    box-shadow: 0 8px 16px rgba(14, 165, 233, 0.2);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.3);
}

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

/* Apps Section */
.apps-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .app-grid {
        grid-template-columns: 1fr;
    }
}

.app-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.app-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.app-icon-container {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.nephro-bg {
    background: #FFFFFF;
    border: none;
}

.app-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nephro-icon {
    width: 85%;
    height: 85%;
}

.app-card:hover .app-icon-img {
    transform: scale(1.05);
}

.app-tagline {
    color: var(--accent-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.feature-list {
    list-style: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feature-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.app-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.store-link {
    display: inline-block;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.store-icon {
    height: 40px;
    width: auto;
    display: block;
    filter: brightness(1);
    transition: all 0.3s ease;
}

.store-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.store-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px) scale(1.05);
}

.screenshot-placeholder {
    margin-top: 1.5rem;
    height: 160px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed var(--glass-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.85rem;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.contact-card {
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.01);
}

.contact-card .icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.link-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.link-btn:hover {
    color: var(--accent-primary);
}

/* Modals */
.modal {
    margin: auto;
    max-width: 800px;
    max-height: 80vh;
    padding: 0;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    overflow: hidden;
}

.modal::backdrop {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    padding: 3rem;
    overflow-y: auto;
    max-height: 80vh;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
}

.policy-body {
    margin-top: 2rem;
    text-align: left;
}

.policy-body h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-secondary);
}

.policy-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.policy-body li {
    margin-bottom: 0.5rem;
}

.last-updated {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards ease-out;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 { animation-delay: 0.2s; }
.hero p { animation-delay: 0.4s; }
.hero-btns { animation-delay: 0.6s; }

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
