/*
 * Rankscape - Main Stylesheet
 * Version: 1.0
 */

/* -------------- */
/* 1. RESET & BASE */
/* -------------- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

:root {
    /* Colors: Primary */
    --color-primary: #2266ea;
    --color-primary-dark: #193283;
    --color-primary-light: #f3faff;

    /* Colors: Secondary */
    --color-secondary: #0029FF;
    --color-secondary-light: #007aff;

    /* Colors: Text */
    --color-text: #000000;
    --color-text-light: #FFFFFF;
    --color-text-muted: #6b7280;

    /* Colors: Status */
    --color-success: #13b96b;
    --color-success-bg: #e6faf2;
    --color-warning: #d8a01a;
    --color-warning-bg: #fff7e1;
    --color-error: #d63333;
    --color-error-bg: #fff0f0;

    /* Colors: UI */
    --color-ui-light: #f6f8fa;
    --color-ui-border: #e0e6ed;
    --color-ui-shadow: rgba(228, 232, 239, 0.11);

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
}

@font-face {
    font-family: TT Fors;
    src: url(fonts/TT_Fors_Variable.ttf);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: TT Fors;
    background: linear-gradient(115deg, #f8fbff 70%, #f7faff 100%);
    min-height: 100vh;
    margin: 0;
    color: var(--color-text);
    letter-spacing: 0.01em;
    line-height: 1.6;
    overflow-x: hidden;
}

/* -------------- */
/* 2. TYPOGRAPHY */
/* -------------- */
a { 
    color: var(--color-primary); 
    text-decoration: none; 
    transition: color 0.13s; 
}
a:hover { 
    color: var(--color-primary-dark); 
}

.accent {
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 1.45rem;
    font-weight: 600;
    color: #222c3d;
    margin-bottom: 13px;
    letter-spacing: -0.01em;
}

.arrow {
    font-weight: 700;
    margin-left: 2px;
}

/* -------------- */
/* 3. LAYOUT */
/* -------------- */
.container-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}

/* -------------- */
/* 4. COMPONENTS */
/* -------------- */

/* 4.1 Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 25px;
    overflow: hidden;
    justify-content: center;
    width: 100%;
}

.hero-container {
    position:relative;
    display: flex;
    height: calc(100vh - 50px);
    width: 100%;
    max-width:1600px;
    flex-direction: row;
    align-items: flex-start;
    border-radius: 50px;
    overflow:hidden;
}

.hero-clip {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1810px;
    height: 968px;
    transform: translateX(-50%);
    background-color: var(--color-secondary);
    background-image:url("../image/dotRankscape.svg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    clip-path: url(#notch);
    -webkit-clip-path: url(#notch);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    margin: 0 auto;
    text-align: center;
    align-self:center;

}

.logo{
    position:absolute;
    top:35px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-background {
    position: absolute;
    inset: 0;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(239,246,255,0.5) 0%, #fff 50%, rgba(219,234,254,0.3) 100%);
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: float 6s ease-in-out infinite;
}

.bg-circle-1 {
    top: 80px;
    left: 40px;
    width: 128px; 
    height: 128px;
    background: rgba(59,130,246,0.1);
}

.bg-circle-2 {
    bottom: 80px;
    right: 40px;
    width: 160px; 
    height: 160px;
    background: rgba(147,197,253,0.1);
    animation-delay: 3s;
}

.hero-title {
    font-size: 4.2rem;
    width:800px;
    font-weight: 700;
    line-height: 1.07;
    letter-spacing: -1.58px;
    margin-bottom: 18px;
    color: var(--color-text-light);
}

.hero-desc,
.hero-description {
    color: var(--color-text-light);
    opacity:0.8;
    font-size: 20px;
    font-weight:300;
    margin-bottom: 48px;
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 36px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-meta {
    color: #7194c5;
    font-size: 1rem;
    margin-top: 18px;
    font-weight: 500;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.hero-features {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    color: var(--color-text-light);
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.15);
    color: var(--color-text-light);
    backdrop-filter: blur(8px);
    font-weight: 300;
    font-size: 15px;
}

.feature-item svg { 
    color: var(--color-primary-light);
    opacity:0.5;
}

/* 4.2 Badges */
.badge,
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: var(--radius-lg);
    font-weight: 300;
    margin-bottom: 32px;
}

.imgHero-left{
    position: absolute;
    bottom:-10px;
    left:20px;
    width:25%;
}

.imgHero-right{
    position: absolute;
    bottom:-10px;
    right:20px;
    width:25%;
    transform: scaleX(-1);
}


.hero-badge {
    background: var(--color-primary-light);
    color: var(--color-text-light);
    box-shadow: 0 2px 8px rgba(220, 231, 250, 0.2);
    margin-bottom: 34px;
}

.badge-outline {
    background: rgba(255,255,255,0.15);
    color: var(--color-text-light);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
}

/* 4.3 Cards */
.card {
    background: rgba(255,255,255,0.99);
    border-radius: 22px;
    padding: 2.2rem;
    margin-bottom: 2.2rem;
    border: 1px solid #f3f6fa;
    box-shadow: 0 4px 32px 0 var(--color-ui-shadow);
    transition: box-shadow 0.19s;
}

.card:hover {
    box-shadow: 0 8px 44px 0 rgba(228, 232, 239, 0.19);
}

/* 4.4 Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 5px 15px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
    height: 50px;
}

.btn-lg { 
    font-size: 18px; 
    padding: 16px 32px; 
    height: 64px; 
}

.btn-primary {
    background: #0029FF;
    color: #fff;
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(37,99,235,0.4);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-muted);
    border: 2px solid #e5e7eb;
}

.btn-outline:hover {
    color: var(--color-primary);
    border-color: #93c5fd;
    background: rgba(59,130,246,0.05);
}

/* 4.5 Forms */

.input-container{
    display:flex;
    background: white;
    border-radius: 14px;
    padding: 14px;
    height:fit-content;
    vertical-align:center;
    box-shadow: 0 157px 44px 0 rgba(0, 0, 0, 0.00), 0 100px 40px 0 rgba(0, 0, 0, 0.02), 0 56px 34px 0 rgba(0, 0, 0, 0.08), 0 25px 25px 0 rgba(0, 0, 0, 0.13), 0 6px 14px 0 rgba(0, 0, 0, 0.15);
}

.input-container svg{
    align-self:center;
    margin-left:5px;

}

.input-url {
    width: 100%;
    height:50px;
    font-size: 1.1rem;
    padding: 14px 22px;
    border-radius: 14px;
    outline: none;
    transition: border-color 0.15s, background 0.12s;
    font-family: inherit;
    display: flex;
    flex-direction: row;
}

input:-webkit-autofill {
    -webkit-box-shadow:0 0 0 50px white inset; /* Change the color to your own background color */
    -webkit-text-fill-color: #333;
}

input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 50px white inset;/*your box-shadow*/
    -webkit-text-fill-color: #333;
}
/* 4.6 Labels & Tags */
.info-label {
    background: #eff4fb;
    color: var(--color-secondary-light);
    font-size: 1.04rem;
    border-radius: 16px;
    padding: 6px 18px;
    margin-right: 7px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 7px;
    letter-spacing: 0.02em;
}

/* Status Tags */
.tag-green,
.pill-good {
    background: var(--color-success-bg);
    color: var(--color-success);
    border-radius: var(--radius-md);
    padding: 4px 13px;
    font-size: .97rem;
}

.tag-yellow,
.pill-warn {
    background: var(--color-warning-bg);
    color: var(--color-warning);
    border-radius: var(--radius-md);
    padding: 4px 13px;
    font-size: .97rem;
}

.tag-red,
.pill-err {
    background: var(--color-error-bg);
    color: var(--color-error);
    border-radius: var(--radius-md);
    padding: 4px 13px;
    font-size: .97rem;
}

.pill-err, 
.pill-warn, 
.pill-good {
    font-weight: 700;
    display: inline-block;
}

/* Status Descriptions */
.error-desc, 
.warn-desc, 
.good-desc {
    font-size: 1.03rem;
    border-radius: var(--radius-sm);
    padding: 7px 18px;
    margin-bottom: 18px;
    margin-top: 3px;
}

.error-desc { 
    color: #e53e3e; 
    background: var(--color-error-bg); 
}

.warn-desc { 
    color: #d69e2e; 
    background: #fffbe6; 
}

.good-desc { 
    color: #16894b; 
    background: #eafff0; 
}

/* 4.7 Score Badge */
.score-badge {
    background: linear-gradient(120deg, #0c63fa 30%, #00e5e6 100%);
    color: #fff;
    font-weight: 700;
    font-size: 2.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    margin: auto;
    box-shadow: 0 2px 12px rgba(224, 232, 255, 0.25);
    letter-spacing: -0.01em;
}

/* 4.8 Headings List */
.hn-list li {
    transition: background 0.15s;
    padding: 7px;
    border-radius: 9px;
}

.hn-list li:hover {
    background: #f8fafc;
}

.hn-l1 { 
    font-weight: bold; 
    color: var(--color-secondary-light); 
}

.hn-l2 { 
    font-weight: 600; 
    color: var(--color-success); 
}

.hn-l3 { 
    font-weight: 500; 
    color: #946be8; 
}

.hn-l4, 
.hn-l5, 
.hn-l6 { 
    color: #b0b3b9; 
}

.bubble-hn {
    display: inline-block;
    min-width: 28px;
    text-align: center;
    background: var(--color-secondary-light);
    color: #fff;
    border-radius: 6px;
    font-size: .97rem;
    margin-right: 13px;
}

/* 4.9 Tables */
.table-modern {
    border-radius: 14px;
    overflow: hidden;
    min-width: 320px;
    box-shadow: 0 4px 28px 0 var(--color-ui-shadow);
}

.table-modern thead tr {
    background: #f5f7fa;
}

.table-modern th {
    font-size: 13px;
    letter-spacing: 0.03em;
    font-weight: 700;
    color: #21242a;
    background: #f7fafd;
    padding: 15px 18px;
    border-bottom: 1px solid #f1f3f5;
}

.table-modern td {
    background: #fff;
    color: #222c3d;
    padding: 14px 18px;
    border-bottom: 1px solid #f6f7fa;
}

.table-modern tr:nth-child(even) td {
    background: #f9fafb;
}

.table-modern tr:hover td {
    background: #f2f5fa !important;
}

/* -------------- */
/* 5. ANIMATIONS */
/* -------------- */
@keyframes float { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-20px); } 
}

/* -------------- */
/* 6. RESPONSIVE */
/* -------------- */
@media (max-width: 1050px) {
    .container-main { 
        padding: 0 8px; 
    }

    .card { 
        padding: 1.2rem 0.9rem 1rem; 
        border-radius: 14px; 
    }

    .section-title { 
        font-size: 1.07rem; 
    }

    .hero-title { 
        font-size: 4rem; 
    }
}

@media (max-width: 768px) {
    .hero-title { 
        font-size: 3rem; 
    }

    .hero-description { 
        font-size: 20px; 
    }

    .hero-buttons { 
        flex-direction: column; 
        align-items: center;
    }

    .hero-features { 
        flex-direction: column; 
        gap: 16px;
    }
}

@media (max-width: 700px) {
    .container-main { 
        max-width: 100vw; 
        padding: 0 2vw; 
    }

    .hero-title { 
        font-size: 2.1rem; 
    }

    .score-badge { 
        width: 52px; 
        height: 52px; 
        font-size: 1rem; 
    }

    .section-title { 
        font-size: .99rem; 
    }

    .hero { 
        padding-top: 32px; 
        padding-bottom: 14px; 
    }

    .btn-primary, 
    .btn-secondary, 
    .hero-form-btn {
        width: 100%;
        justify-content: center;
        padding: 15px 0;
        font-size: 1rem;
    }

    .hero-actions { 
        flex-direction: column; 
        gap: 12px; 
        width: 100%; 
    }
}

@media (max-width: 480px) {
    .hero { 
        padding: 100px 8px 60px; 
    }

    .hero-title { 
        font-size: 2rem; 
    }
}