/* ===================================
   UTILITY CLASSES
   =================================== */
* {
    text-decoration: none;
}

/* Layout Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-1 {
    flex: 1;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-visible {
    overflow: visible;
}

/* Spacing Utilities */
.m-0 {
    margin: 0;
}

.m-auto {
    margin: auto;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mx-5 {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
}

.p-0 {
    padding: 0;
}

.p-2 {
    padding: 0.5rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Sizing Utilities */
.w-full {
    width: 100%;
}

.w-8 {
    width: 2rem;
}

.w-80 {
    width: 20rem;
}

.w-\[75px\] {
    width: 75px;
}

.h-full {
    height: 100%;
}

.h-8 {
    height: 2rem;
}

.h-auto {
    height: auto;
}

.max-w-full {
    max-width: 100%;
}

/* Typography Utilities */
.font-normal {
    font-weight: normal;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-white {
    color: #ffffff;
}

.text-black {
    color: #000000;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-900 {
    color: #111827;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

/* Background Utilities */
.bg-white {
    background-color: #ffffff;
}

.bg-transparent {
    background-color: transparent;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-gray-900 {
    background-color: #111827;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, rgb(13 80 107) 0%, rgb(45 153 89) 50%, rgb(173 235 148) 100%);
}

.bg-gradient-light {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
}

/* Border Utilities */
.border {
    border-width: 1px;
}

.border-white {
    border-color: #ffffff;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-t {
    border-top-width: 1px;
}

.border-white\/40 {
    border-color: rgba(255, 255, 255, 0.4);
}

/* Border Radius Utilities */
.rounded {
    border-radius: 0.25rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Shadow Utilities */
.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Transition Utilities */
.transition {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-200 {
    transition-duration: 200ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.duration-600 {
    transition-duration: 600ms;
}

.duration-800 {
    transition-duration: 800ms;
}

/* Transform Utilities */
.scale-75 {
    transform: scale(0.75);
}

.scale-90 {
    transform: scale(0.9);
}

.scale-95 {
    transform: scale(0.95);
}

.scale-100 {
    transform: scale(1);
}

.scale-105 {
    transform: scale(1.05);
}

.translate-y-0 {
    transform: translateY(0);
}

.translate-y-4 {
    transform: translateY(1rem);
}

.-translate-y-1 {
    transform: translateY(-0.25rem);
}

.-translate-y-2 {
    transform: translateY(-0.5rem);
}

/* Z-index Utilities */
.z-0 {
    z-index: 0;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-30 {
    z-index: 30;
}

.z-50 {
    z-index: 50;
}

.z-auto {
    z-index: auto;
}

/* Cursor Utilities */
.cursor-pointer {
    cursor: pointer;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

/* Backdrop Utilities */
.backdrop-blur {
    backdrop-filter: blur(8px);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
}

.backdrop-blur-lg {
    backdrop-filter: blur(16px);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

/* Spacing Utilities */
.space-x-4>*+* {
    margin-left: 1rem;
}

.space-x-8>*+* {
    margin-left: 2rem;
}

.space-y-2>*+* {
    margin-top: 0.5rem;
}

.space-y-3>*+* {
    margin-top: 0.75rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

/* Margin Utilities */
.ml-8 {
    margin-left: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

/* Opacity Utilities */
.opacity-0 {
    opacity: 0;
}

/* Pointer Events */
.pointer-events-none {
    pointer-events: none;
}

/* Object Fit */
.object-cover {
    object-fit: cover;
}

/* Loading */
.loading-eager {
    loading: eager;
}

.loading-lazy {
    loading: lazy;
}

/* Responsive Utilities */
@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }

    .md\:hidden {
        display: none;
    }

    .md\:block {
        display: block;
    }

    .md\:w-full {
        width: 100%;
    }

    .md\:text-center {
        text-align: center;
    }
}

@media (min-width: 1024px) {
    .lg\:flex {
        display: flex;
    }

    .lg\:hidden {
        display: none;
    }

    .lg\:block {
        display: block;
    }

    .lg\:w-full {
        width: 100%;
    }

    .lg\:text-center {
        text-align: center;
    }
}

@media (min-width: 1440px) {
    .xl\:flex {
        display: flex;
    }

    .xl\:hidden {
        display: none;
    }

    .xl\:block {
        display: block;
    }

    .xl\:w-full {
        width: 100%;
    }

    .xl\:text-center {
        text-align: center;
    }
}


.logo-and-nav,
.mobile-logo {
    line-height: 0 !important;
}

/* Component Utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease-out forwards;
}

/* ===================================
   PAGE LAYOUT COMPONENTS
   =================================== */

/* Hero Section Layout */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: calc(100vh - 200px);
}

.hero-text {
    flex: 1;
    text-align: center;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Section Layout */
.section {
    padding: 100px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: #0f172a;
    line-height: 0.9;
    letter-spacing: -0.03em;
    margin-bottom: 0;
}

.section-subtitle {
    font-size: 18px;
    color: #374151;
    margin-top: 16px;
    font-weight: 400;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Badge Component */
.badge {
    margin-bottom: 32px;
}

.badge span {
    background: #fff;
    color: #000;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    border: 2px solid #000;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.page-title {
    font-size: 75px;
    line-height: 1.2;
}

.page-title-highlight {
    background: linear-gradient(90deg, #05b981 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 20px;
    color: #1f2937;
    margin-bottom: 48px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

/* Button Components */
.btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: #05b981;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    width: 300px;
    height: 55px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
    background: #1ac791;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary:focus {
    outline: none;
    ring: 2px;
    ring-color: #05b981;
    ring-offset: 2px;
}

.btn-secondary {
    background: white;
    color: #000;
    border: 2px solid #000;
    border-radius: 8px;
    padding: 12px 24px;
    width: 300px;
    height: 55px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-secondary:focus {
    outline: none;
    ring: 2px;
    ring-color: #6b7280;
    ring-offset: 2px;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px 32px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(16, 185, 129, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: #e2e8f0;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrapper {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #05b981 0%, #00895c 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e293b;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: #374151;
    line-height: 1.6;
    font-size: 15px;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* Phone Mockup */
.phone-mockup {
    position: relative;
    width: 280px;
    height: 560px;
    background: #1e293b;
    border-radius: 32px;
    padding: 8px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.app-header {
    background: linear-gradient(135deg, #05b981 0%, #00895c 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.app-status-bar {
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 12px;
}

.app-title {
    font-size: 18px;
    font-weight: 700;
}

.app-content {
    padding: 20px;
}

.app-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.card-date {
    font-size: 12px;
    color: #374151;
    font-weight: 500;
}

/* Responsive Utilities for Page Components */
@media (min-width: 1024px) {
    .hero-content {
        flex-direction: row;
        gap: 120px;
        padding: 0 40px;
    }

    .hero-text {
        text-align: left;
    }

    .btn-group {
        justify-content: flex-start;
    }

    .page-subtitle {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (min-width: 768px) {
    .section {
        padding: 120px 40px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (min-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 48px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-content {
        min-height: calc(100vh - 160px);
    }

    .page-title {
        font-size: 48px;
        line-height: 1.2;
    }

    .page-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 36px;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        max-width: 300px;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }
}

/* ===================================
   PACKAGE IDENTIFIER STYLES
   =================================== */

/* 패키지 네임 식별 관련 스타일 */
.hidden-in-farmdy {
    display: none !important;
}

.visible-in-farmdy {
    display: block !important;
}

.visible-in-web {
    display: block !important;
}

/* Farmdy 앱에서 숨겨질 요소들 */
[data-hide-in-farmdy] {
    transition: opacity 0.3s ease;
}

[data-hide-in-farmdy].hidden-in-farmdy {
    opacity: 0;
    pointer-events: none;
}

/* Farmdy 앱에서만 보여질 요소들 */
[data-show-only-in-farmdy] {
    transition: opacity 0.3s ease;
}

[data-show-only-in-farmdy]:not(.visible-in-farmdy) {
    opacity: 0;
    pointer-events: none;
}

/* 웹에서만 보여질 요소들 */
[data-show-only-in-web] {
    transition: opacity 0.3s ease;
}

[data-show-only-in-web]:not(.visible-in-web) {
    opacity: 0;
    pointer-events: none;
}

/* 패키지별 body 클래스 스타일 */
.is-farmdy-app {
    /* Farmdy 앱에서의 특별한 스타일 */
}

.is-web-browser {
    /* 웹 브라우저에서의 특별한 스타일 */
}

/* 패키지 네임 디버깅용 (개발 환경에서만) */
.package-debug {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 9999;
    display: none;
}

.is-farmdy-app .package-debug {
    background: rgba(0, 150, 0, 0.8);
}

.is-web-browser .package-debug {
    background: rgba(0, 100, 200, 0.8);
}