/* ============================================
   ONCORPORATION - Professional Stylesheet
   ============================================ */

/* ===== CSS Custom Properties ===== */
:root {
    --primary: #0052cc;
    --primary-dark: #003d99;
    --primary-light: #4c9aff;
    --accent: #00c7be;
    --accent-dark: #00a89e;
    --dark: #0a1628;
    --dark-surface: #111d33;
    --gray-900: #1a2332;
    --gray-800: #2d3a4e;
    --gray-700: #4a5568;
    --gray-600: #64748b;
    --gray-500: #94a3b8;
    --gray-400: #cbd5e1;
    --gray-300: #e2e8f0;
    --gray-200: #f1f5f9;
    --gray-100: #f8fafc;
    --white: #ffffff;
    --success: #10b981;
    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --danger-border: #fecaca;
    --warning: #f59e0b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 40px rgba(0,82,204,0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);    
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.white-border {
    border: 1px solid rgba(255,255,255,0.65) !important;
}
/* ===== Navigation ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    height: 64px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-300);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.navbar-brand .brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    font-weight: 900;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.navbar-links a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.navbar-links a:hover {
    color: var(--primary);
    background: rgba(0,82,204,0.06);
}

.navbar-links .btn-nav {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.navbar-links .btn-nav:hover {
    background: var(--primary-dark);
}

/* ===== Hero Section ===== */
.hero-section {
    text-align: center;
    padding: 5rem 2rem 4rem;
    background: linear-gradient(160deg, var(--dark) 0%, var(--primary-dark) 50%, var(--primary) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0,199,190,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(76,154,255,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0,82,204,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--gray-100), transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.55);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.hero-badge .badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;    
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
    background: linear-gradient(135deg, var(--white) 0%, rgba(255,255,255,0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.7;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Cards ===== */
.info-section { margin-bottom: 4rem; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 2rem;
}

.card {
    background: var(--white);
    padding: 2.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-300);
    text-align: left;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(-2px);
}

.card:hover::before {
    opacity: 1;
}

.card-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.card h3 {
    color: var(--dark);
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ===== Page Container ===== */
.page-container {
    max-width: 480px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.page-container h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.subtext {
    color: var(--gray-600);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* ===== Form Container ===== */
.form-container {
    background: var(--white);
    padding: 2.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-300);
    box-shadow: var(--shadow-md);
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--gray-800);
}

.form-input::placeholder {
    color: var(--gray-500);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,82,204,0.1);
    outline: none;
}

.form-input:hover:not(:focus) {
    border-color: var(--gray-400);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.75rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-family: inherit;
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0,82,204,0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #002d6b);
    box-shadow: 0 4px 12px rgba(0,82,204,0.35);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(0,82,204,0.04);
    transform: translateY(-1px);
}

.btn-large { padding: 0.85rem 2.25rem; font-size: 1.05rem; }

.btn-copy {
    background: var(--primary);
    color: var(--white);
    padding: 0.45rem 1rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-copy:hover {
    background: var(--primary-dark);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    color: var(--gray-600);
    margin-top: 1.5rem;
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

.btn-back:hover {
    color: var(--primary);
}

/* ===== Alerts ===== */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
    border-left: 4px solid;
    font-size: 0.95rem;
}

.alert-success {
    background: var(--success-bg);
    border-color: var(--success);
    color: #065f46;
}

.alert-danger {
    background: var(--danger-bg);
    border-color: var(--danger);
    color: #991b1b;
}

/* ===== Key Display ===== */
.key-display {
    font-size: 1.1rem;
    word-break: break-all;
    background: var(--gray-200);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-300);
    margin: 0.5rem 0;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    color: var(--primary-dark);
    letter-spacing: 0.02em;
}

.code-block {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: var(--gray-200);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-300);
    margin-top: 0.75rem;
}

.code-block code {
    flex: 1;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    word-break: break-all;
    font-size: 0.85rem;
    color: var(--gray-700);
}

/* ===== Logo ===== */
#logo {
    border-radius: var(--radius-sm);
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 2rem 2rem;
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-top: auto;
    border-top: 1px solid var(--gray-300);
    background: var(--white);
}

.footer a {
    color: var(--primary);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ===== Validation ===== */
.field-validation-invalid {
    color: var(--danger);
    font-size: 0.825rem;
    margin-top: 0.3rem;
    display: block;
    font-weight: 500;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .navbar { padding: 0 1.25rem; }
    .hero-section { padding: 3.5rem 1.5rem 3rem; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content .hero-subtitle { font-size: 1.05rem; }
    .card-grid { grid-template-columns: 1fr; padding: 0 1.25rem; }
    .page-container { margin: 2rem auto; }
    .form-container { padding: 1.5rem; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 1.8rem; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .navbar-links a { padding: 0.4rem 0.6rem; font-size: 0.85rem; }
}
}

.subtext { color: #6c757d; margin-bottom: 1.5rem; }

@media (max-width: 600px) {
    .hero-section { padding: 2rem 1rem; }
    .hero-section h1 { font-size: 1.8rem; }
    .hero-actions { flex-direction: column; align-items: center; }
}
